Re: [R] Concatenate vector into string
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 __ 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
RE: [R] Concatenate vector into string
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. 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! http://www.R-project.org/posting-guide.html - Legal Notice: This electronic mail and its attachments are i...{{dropped}} __ 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
Re: [R] Concatenate vector into string
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 guide! http://www.R-project.org/posting-guide.html __ 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
Re: [R] Concatenate vector into string
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 __ 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 __ 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
Re: [R] Concatenate vector into string
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 mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Pierre BADY °) Université Claude Bernard Lyon 1 UMR CNRS 5023, LEHF bat Alphonse Forel 43 boulevard du 11 novembre 1918 F-69622 VILLEURBANNE CEDEX FRANCE TEL : +33 (0)4 72 44 62 34 FAX : +33 (0)4 72 43 28 92 MEL : [EMAIL PROTECTED] http://limnologie.univ-lyon1.fr http://pierre.bady.free.fr (in construction) [[alternative HTML version deleted]] __ 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
RE: [R] Concatenate vector into string
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 https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ 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
Re: [R] Concatenate vector into string
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! http://www.R-project.org/posting-guide.html paste( c(a,b,c),collapse=) Eryk -- Witold Eryk Wolski __( School of Mathematics and Statistics _ \__/ University of Newcastle 'v' ||Newcastle upon Tyne, NE1 7RU, ENGLAND / \ ^^mail: [EMAIL PROTECTED] m m Phone : 044 (0)191 222 5376 FAX : 044 (0)191 222 8020 __ 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
Re: [R] Concatenate vector into string
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 mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ 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
Re: [R] Concatenate vector into string
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 __ 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