[R] computing a subset using a loop

2012-07-15 Thread burton030
Dear all, I have a data frame with different variables and I want to build different subsets out of this data frame using some conditions and I want to use a loop because there will be a lot of subsets and this would be saving a lot of time. I try to give you an overview about my data

Re: [R] computing a subset using a loop

2012-07-15 Thread burton030
http://r.789695.n4.nabble.com/file/n4636585/Baumdaten_aufbereitet.csv Baumdaten_aufbereitet.csv Here you have an overview about my data frame... -- View this message in context: http://r.789695.n4.nabble.com/computing-a-subset-using-a-loop-tp4636564p4636585.html Sent from the R help mailing

Re: [R] computing a subset using a loop

2012-07-15 Thread burton030
Hi, thanks for your reply but this code just gives me a list but no subsets but I need subsets because I want to do some calculations with these subsets and want do make some plots etc. Is there a solution for my problem? I ve posted an example for the first subset...

Re: [R] computing a subset using a loop

2012-07-16 Thread burton030
Hi, thanks I think now I understand how it works... I m using now this code for the first specie in all my transect IDs. df.s - split(Baumdaten, list(Baumdaten$transectID, Baumdaten$Baumart), drop = TRUE) head(names(df.s), 10) A_SEF_Abies alba A_LEF_Abies alba B_SEF_Abies alba B_LEF_Abies alba