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
?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
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
3 matches
Mail list logo