In split function I don't know, but you can do:
names(mydata.split) <- gsub("\\.", "-",
names(mydata.split))
--
Henrique Dallazuanna
Curitiba-Paran?-Brasil
25? 25' 40" S 49? 16' 22" O
On 24/11/2007, S?bastien <pomchip at free.fr>
wrote:> 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 at 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.
>