[R] 'Split' chracter
Sébastien
pomchip at free.fr
Sun Nov 25 00:18:29 CET 2007
Dear R-users,
The following code splits a very simple dataframe into a list, each
element of the list being one line of the dataframe. You will see that
the split function names each element of the list by using uses the
content of a and b and merging them with a "." character. Is there a way
to customize this character?
a<-1:10
b<-21:30
mydata<-data.frame(a,b)
mydata.split<-split(mydata,(mydata[,1:2]),drop=TRUE)
mydata.split
Thanks in advance for your help.
Sebastien
More information about the R-help
mailing list