I have a list of data frames:
d1<-data.frame(a=orm(5), b=rep(2006, times=5), cc=c(1:5))
d2<-data.frame(a=orm(5), b=rep(2007, times=5), cc=c(1:5))
d3<-data.frame(a=orm(5), b=rep(2008, times=5), cc=c(1:5))
my.ls<- list(d1, d2, d3)
how to select / subset only a dataframe where b == 2007 ?
I am sure that's something simple as
my.ls[sapply(my.ls[[i]]$b) == 2007]
but I can't figure that out... How can I access rows in list of data frames? Thank you !
