Can someone remind me how to change the columns in df.a into a two column
df.b that contains one column of data and another column of the original
column headings as levels.
Example:
a=1:3
b=4:6
c=7:9
df.a=data.frame(a,b,c)
Should become in df.b:
dat lev
1 a
2 a
3 a
4 b
5
On Wed, 2007-03-14 at 03:53 -0500, Robert Baer wrote:
Can someone remind me how to change the columns in df.a into a two column
df.b that contains one column of data and another column of the original
column headings as levels.
Example:
a=1:3
b=4:6
c=7:9
df.a=data.frame(a,b,c)
Robert Baer wrote:
Can someone remind me how to change the columns in df.a into a two column
df.b that contains one column of data and another column of the original
column headings as levels.
Example:
a=1:3
b=4:6
c=7:9
df.a=data.frame(a,b,c)
Should become in df.b:
dat lev
1