[R] Concatenate vector into string

2005-03-04 Thread Matthieu Cornec
Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Concatenate vector into string

2005-03-04 Thread Chuck Cleland
Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? ?paste paste(c(a,b,c), collapse=) -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894

RE: [R] Concatenate vector into string

2005-03-04 Thread Bashir Saghir (Aztek Global)
Try: paste(c(a,b,c), collapse=) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthieu Cornec Sent: Friday, March 04, 2005 12:32 To: [EMAIL PROTECTED] Subject: [R] Concatenate vector into string Hello, I would like to convert c(a,b,c) into abc

Re: [R] Concatenate vector into string

2005-03-04 Thread Uwe Ligges
Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? See ?paste Uwe Ligges Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Concatenate vector into string

2005-03-04 Thread Adaikalavan Ramasamy
Use the collapse argument in paste. paste( c(a, b, c), collapse= ) [1] abc On Fri, 2005-03-04 at 03:32 -0800, Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __

Re: [R] Concatenate vector into string

2005-03-04 Thread Pierre BADY
Hi all, ted - letters[1:3] ted paste(ted, collapse = ) cheers, P.BADY At 03:32 04/03/2005 -0800, Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch

RE: [R] Concatenate vector into string

2005-03-04 Thread Liaw, Andy
See ?paste, e.g., char - c(a, b, c) paste(char, collapse=) [1] abc Andy From: Matthieu Cornec Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list

Re: [R] Concatenate vector into string

2005-03-04 Thread Witold Eryk Wolski
Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Concatenate vector into string

2005-03-04 Thread Spencer Graves
How about: paste( c(a,b,c), collapse=) [1] abc hope this helps. spencer graves Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? Thanks, Matthieu Cornec __ R-help@stat.math.ethz.ch

Re: [R] Concatenate vector into string

2005-03-04 Thread Tim Cutts
On 4 Mar 2005, at 11:32 am, Matthieu Cornec wrote: Hello, I would like to convert c(a,b,c) into abc. Anyone could help? paste(c(a, b, c), sep=) Tim -- Dr Tim Cutts Informatics Systems Group, Wellcome Trust Sanger Institute GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5 860B 3CDD 3F56 E313 4233