probably something like,

unlist(x[1,])

HTH.

H.

>>> "Andrew Yee" <[EMAIL PROTECTED]> 5/15/2007 4:37 PM >>>
I've searched for the answer to this in the help list archive, but wasn't
able to get the answer to work.

I'm interested in converting a row of a data.frame into a vector.

However, when I use as.vector(x,[1,]) I get another data.frame, instead of a
vector.  (On the other hand, when I use as.vector(x,[,1]), I get a vector.)

Thanks,
Andrew

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help 
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to