[R] How to extract row values?

Henrik Kallberg Henrik.Kallberg at ki.se
Thu Aug 20 13:55:30 CEST 2009


Dear All!
I'm trying to extract one specific row from a data frame without columnnames being included. I only want a 1-dimensional vector that consists of the specific data on this row. Here's an example:
existing data:
column names: v1v2v3
Row 1             ab cd ef
Row 2             gh ij kl
Row 3             mn op qr
This is what I want to extract:
ab cd ef 
I do not want: v1v2v3
                     ab cd ef
Thank you in advance
Henrik


More information about the R-help mailing list