[R] merge strings

2006-09-17 Thread Bingshan Li
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? Thanks!

Re: [R] merge strings

2006-09-17 Thread Duncan Murdoch
Bingshan Li wrote: 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? Thanks! Use the

Re: [R] merge strings

2006-09-17 Thread Bingshan Li
Hi Duncan Murdoch, Thanks for the trick and it works! --- Duncan Murdoch [EMAIL PROTECTED] wrote: Bingshan Li wrote: 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