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

______________________________________________
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.

Reply via email to