[R] merge strings

From: Bingshan Li <bingshanli_at_yahoo.com>
Date: Mon 18 Sep 2006 - 01:44:11 GMT

Hi all,

I have a vector and want to merge its elements one by one into a single string or number. For example, x=c(1,2,3), what I want is a new number 123. I used "paste" but it just output "1" "2" "3" which is not what I want. Is there any way to do this?


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 and provide commented, minimal, self-contained, reproducible code. Received on Mon Sep 18 12:08:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 18 Sep 2006 - 02:30:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.