Hi Baptiste,
Isn't paste doing exactly this?
yes indeed - surprising
temp <- c("November", "December","Monday","Tuesday")
paste(temp, collapse=",")

paste(temp, sep=",") I tried to use sep  :-(


     Arguments

|...|   one or more *R* objects, to be converted to character vectors.
|sep| a character string to separate the terms. Not |NA_character_ <cid:part1.05050004.04080404@krueger-family.de>|. |collapse| an optional character string to separate the results. Not |NA_character_ <cid:part1.05050004.04080404@krueger-family.de>|.

and I did not realize that I separated the wrong part ...

Kind regards 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