Skip to content
Prev 59657 / 398502 Next

data.frame into vector

A data frame is a list, and a list is a vector.  Once you understand that, 
yoy may understand what you are seeing.

as.matrix(x)[1,]  seems to be one of the easiest ways to get what you want
On Tue, 23 Nov 2004, Tiago R Magalhaes wrote:

            
Eh?  I get an error there.