Jim Lemon schrieb:

Not as easy as I thought it would be, but:

mlist<-as.list(paste("m",1:sample(5:10,1),sep=""))
do.call("paste",c(mlist,sep=","))


Hi Jim,
yes it works  :-)

temp <- c("November", "December","Monday","Tuesday")
length(temp) #getting the length of the vector
string1=do.call("paste",c(as.list(temp),sep=",")) #converting to a string

but I have no idea where I could find that documentation ;-)

Thanks a lot
Knut

______________________________________________
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