[R] splitting a vector on comma
David Scott
d.scott at auckland.ac.nz
Mon May 5 06:14:47 CEST 2008
?strsplit
On Sun, 4 May 2008, Georg Ehret wrote:
> Dear R Usergroup,
> I have the following vector and I would like to split it on ",".
> How can I do this?
>> u
> [1]
> "160798191,160802762,160813395,160816017,160817873,160824082,160825247,160826925,160834272,160836257,"
>
> Thank you in advance!
> With my best regards, Georg.
> ************************************
> Georg Ehret
> Baltimore
> USA
>
> [[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.
>
_________________________________________________________________
David Scott Department of Statistics, Tamaki Campus
The University of Auckland, PB 92019
Auckland 1142, NEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email: d.scott at auckland.ac.nz
Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics
More information about the R-help
mailing list