[R] Getting rows from a dataframe
Paul, David A
paulda at BATTELLE.ORG
Thu Oct 9 19:16:12 CEST 2003
Suppose foo.frame is your dataframe. Use
foo.frame[j,]
to extract all of the elements in the jth row
of foo.frame. Also, you should get two excellent
books that will help your learning process:
"The Basics of S and Splus", by Krause and Olsen,
Third Edition, Springer-Verlag
"Modern Applied Statistics with S", by Venables
and Ripley, Fourth Edition, Springer-Verlag
Krause & Olsen's book is the more elementary
of the two. Venables and Ripley will get you
to the point where you can productively use
R/Splus for statistical analyses. Hope this helps.
Best,
david paul
-----Original Message-----
From: Mark Lee [mailto:mark.lee at orbisuk.com]
Sent: Thursday, October 09, 2003 12:02 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Getting rows from a dataframe
Sorry if this is a silly question. I'm trying to extract all elements of a
dataframe at a particular row. I can find no mention of this in any
documentation and it may be naivety of dataframe on my part as I'm very
green at this. Thankyou,
Mark
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list