[R] Creating dataframes
Woida71
w.gostner at ipp.bz.it
Fri May 13 17:28:49 CEST 2011
I would like to create a certain number of dataframes out of one dataframe
where each of the dataframes
is related to a factor. This should be possible with a loop or a function,
as is very clumsy to do it manually
when there are quite a lot factors.
For example having a dataframe called "exmpl":
Site Value
1 12
1 15
1 18
1 21
1 12
1 13
2 15
2 12
2 58
2 62
2 22
2 65
2 29
3 21
3 55
3 11
3 98
I would like to create 3 dataframes, where
"exmpl_01" equals:
1 12
1 15
1 18
1 21
1 12
1 13
"exmpl_02" equals:
2 15
2 12
2 58
2 62
2 22
2 65
2 29
"exmpl_03" equals:
3 21
3 55
3 11
3 98
Thanks for any help.
Walter
--
View this message in context: http://r.789695.n4.nabble.com/Creating-dataframes-tp3520509p3520509.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list