[R] Split rownames into factors
jimdare
jamesdare26 at gmail.com
Tue Jul 28 00:10:12 CEST 2009
Hi Guys,
I was wondering how you would go about solving the following problem:
I have a list where the grouping information is in the row names.
Rowname [,1]
X1Jan08 324
X1Jun08 65
X1Dec08 543
X2Jan08 23
X2Jun08 54
X2Dec08 8765
X3Jan08 213
X3Jun08 43
X3Dec08 65
How can I create the following dataframe:
Value Date Group
[1,] 324 Jan 08 X1
[2,] 65 Jun 08 X1
[3,] 543 Dec 08 X1
etc.................
Thanks for your help!
James
--
View this message in context: http://www.nabble.com/Split-rownames-into-factors-tp24689181p24689181.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list