Skip to content
Prev 181317 / 398502 Next

Assigning variable names from one object to another object

On 24/05/2009 12:21 PM, Sunita22 wrote:
names or colnames should work:

colnames(Data2) <- Data1$Varname

or

names(Data2) <- Data1$Varname
That's another way that would work.

Duncan Murdoch