Re: [R] subsetting a list of dataframes

2011-05-18 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Lara Poplarski > Sent: Tuesday, May 17, 2011 4:14 PM > To: r-help@r-project.org > Subject: Re: [R] subsetting a list of dataframes > > Thank you all, th

Re: [R] subsetting a list of dataframes

2011-05-18 Thread David Winsemius
the list that you seek marked with TRUE. This vector can then be used to extract a subset from your list by: data.reduced=data[entries.with.nrows] Or similar HTH Jannis --- Lara Poplarski schrieb am Di, 17.5.2011: Von: Lara Poplarski Betreff: [R] subsetting a list of dataframes An

Re: [R] subsetting a list of dataframes

2011-05-17 Thread Lara Poplarski
is > > --- Lara Poplarski schrieb am Di, 17.5.2011: > > > Von: Lara Poplarski > > Betreff: [R] subsetting a list of dataframes > > An: r-help@r-project.org > > Datum: Dienstag, 17. Mai, 2011 20:24 Uhr > > Hello All, > > > > I have a list of datafr

Re: [R] subsetting a list of dataframes

2011-05-17 Thread Jannis
Or similar HTH Jannis --- Lara Poplarski schrieb am Di, 17.5.2011: > Von: Lara Poplarski > Betreff: [R] subsetting a list of dataframes > An: r-help@r-project.org > Datum: Dienstag, 17. Mai, 2011 20:24 Uhr > Hello All, > > I have a list of dataframes, and I need t

Re: [R] subsetting a list of dataframes

2011-05-17 Thread Rolf Turner
On 18/05/11 08:24, Lara Poplarski wrote: Hello All, I have a list of dataframes, and I need to subset it by keeping only those dataframes in the list that meet a certain criterion. Specifically, I need to generate a second list which only includes those dataframes whose number of rows is> 1. C

Re: [R] subsetting a list of dataframes

2011-05-17 Thread William Dunlap
ssage- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Lara Poplarski > Sent: Tuesday, May 17, 2011 1:25 PM > To: r-help@r-project.org > Subject: [R] subsetting a list of dataframes > > Hello All, > > I have a list of da

Re: [R] subsetting a list of dataframes

2011-05-17 Thread Jorge Ivan Velez
Hi Lara, You might try the following (untested): yourlistofdataframes[sapply(yourlistofdataframes, function(d) nrow(d) > 1)] HTH, Jorge On Tue, May 17, 2011 at 4:24 PM, Lara Poplarski <> wrote: > Hello All, > > I have a list of dataframes, and I need to subset it by keeping only those > dataf

[R] subsetting a list of dataframes

2011-05-17 Thread Lara Poplarski
Hello All, I have a list of dataframes, and I need to subset it by keeping only those dataframes in the list that meet a certain criterion. Specifically, I need to generate a second list which only includes those dataframes whose number of rows is > 1. Could someone suggest how to do this? I have