Try this also:

 ls[colSums(sapply(ls, '[[', 'Acc')) > 0]


On Sun, Nov 7, 2010 at 9:07 AM, Matthew Finkbeiner <
matthew.finkbeiner@mq.edu.au> wrote:

> I have a list of data frames like this:
>
> a<- data.frame(x=runif(10), y = runif(10), Acc = 1)
> b<- data.frame(x=runif(10), y = runif(10), Acc = 0)
> ls<- list(a,b)
>
> and I want to remove the data frames from ls that have Acc values other
> than 1.
>
> How do I do that?
>
> Thanks for any help!
>
> Matthew
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

