[R] combine elements of a character vector into a character
Diethelm Wuertz
wuertz at itp.phys.ethz.ch
Tue Feb 14 09:55:08 CET 2006
Taka Matzmoto wrote:
>Hi R users
>
>I have a simple question to ask
>
>x <- c("a","b","c")
>x
>[1] "a" "b" "c"
>
>
Try
paste(x, collapse = "")
DW
>I like to have "abc" instead of having "a" "b" "c"
>
>I tried to use paste and other functions related to character.
>
>Is there any function (command) that enable me to combine elements of a
>character vector into one character ?
>
>Thanks
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>
More information about the R-help
mailing list