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:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 12:02 PM To: [EMAIL PROTECTED] 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 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help