> -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
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
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
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
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
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
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
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
8 matches
Mail list logo