Re: [R] Unlist command drops all my column names in the first row and adopts NAs

2011-04-20 Thread John Kane
Why not just data.matrix(UN2010) ? --- On Wed, 4/20/11, Haillie wrote: > From: Haillie > Subject: [R] Unlist command drops all my column names in the first row and > adopts NAs > To: r-help@r-project.org > Received: Wednesday, April 20, 2011, 11:05 AM > Hi Everyone, >

[R] Unlist command drops all my column names in the first row and adopts NAs

2011-04-20 Thread Haillie
Hi Everyone, I am having trouble turning my data.frame into a matrix format. Because I wanted to change my data.frame with mostly factor variables into a numeric matrix, I used the following code --> UN2010frame<-data.matrix(lapply(UN2010,as.numeric)) However when i checked the mode of the UN201