Re: [R] Convert character vector into string

2010-04-28 Thread Ista Zahn
Hi Ian, I would use paste() for this: > x <- c("a","b","c") > x.s <- paste(x, collapse=" ") > x.s [1] "a b c" -Ista On Thu, Apr 29, 2010 at 4:21 AM, Ian Seow wrote: > Hi, how do I convert a character vector into a string? > > c("a","b","c")  into "a b c" > > Thanks! > >        [[alternative HT

Re: [R] Convert character vector into string

2010-04-28 Thread Nikhil Kaza
?cat On Apr 28, 2010, at 11:21 PM, Ian Seow wrote: Hi, how do I convert a character vector into a string? c("a","b","c") into "a b c" Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.c

[R] Convert character vector into string

2010-04-28 Thread Ian Seow
Hi, how do I convert a character vector into a string? c("a","b","c") into "a b c" Thanks! [[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