[R] manipulating dataframe according to the values of some columns

From: zhihua li <lzhtom_at_hotmail.com>
Date: Sat 14 May 2005 - 01:43:20 EST

hi netters,

I'm a newbie to R and there are some very simple problems puzzeled me for two days.

I've a dataframe here with several columns different in modes. Two of the columns are special for me: column 1 has the mode "factor" and column 2 has the mode "numeric vectors".
The values for column 1 are either "T" or "F". I wanna do two things: Firstly, remove those rows whose values for column 1 are "F"; Secondly,sort the rows in the ascending order of values for column 2.

I believe the code to do these things is simple. But I can't figure it out. Please help me!

Thanks a lot!

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 14 01:56:51 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:45 EST