Try this: paste(x, collapse = '+')
On Tue, Aug 3, 2010 at 5:34 PM, phoebe kong <sityeek...@gmail.com> wrote: > Hi all, > > Is there a function that allow me to concatenate each value in a vector to > a > string? > > x<-c("a","b","c","d") > > output string = a+b+c+d > > Thanks, > phoebe > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ 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.