Skip to content
Back to formatted view

Raw Message

Message-ID: <D0356DB56CA.000002F9jrkrideau@inbox.com>
Date: 2013-12-22T16:02:48Z
From: John Kane
Subject: How do I separate elements of a vector by comma?
In-Reply-To: <1387726821.18931.YahooMailNeo@web141104.mail.bf1.yahoo.com>

paste(xx,",", sep = "") but this coerces the vector to a character vector.

John Kane
Kingston ON Canada


> -----Original Message-----
> From: elham_h763 at yahoo.com
> Sent: Sun, 22 Dec 2013 07:40:21 -0800 (PST)
> To: r-help at r-project.org
> Subject: [R] How do I separate elements of a vector by comma?
> 
> I have a vector like this (this vector is a colomn of a data set):
>> 3 5 2 3 7 4 7 8  8 9 0 1 4
> I want to separate elements of the vector by comma like this:
>> 3,5,2,3,7,4,7,8,8,9,0,1,4
> How can do this?
> Thanks.
> Elham
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org 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.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!