[R] combine elements of a character vector into a character

From: Taka Matzmoto <sell_mirage_ne_at_hotmail.com>
Date: Tue 14 Feb 2006 - 19:32:50 EST


Hi R users

I have a simple question to ask

x <- c("a","b","c")
x
[1] "a" "b" "c"

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@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 Received on Tue Feb 14 19:35:30 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:29 EST