[R] Splitting column into multiple columns

Ajay ohri ohri2007 at gmail.com
Fri Sep 12 14:08:09 CEST 2008


   Hi All,

I have the following data in one column for each row , (each value is
like x1,y1,z1 space x2,y2,z2 space....)

77.56787,22.09909,0 73.26787,21.09909,0
76.53487,23.09909,0 75.56787,22.09909,0
76.54587,22.09909,0 76.56787,22.03509,0
75.56457,22.05609,0 76.56787,22.05609,0

Note all z values are O (hence ,0 can be treated as a delimiter)

How do I split this column into multiple columns for each row.

Regards,
Ajay

www.decisionstats.com



More information about the R-help mailing list