[R] A quesiton on data manipulation

From: Tong Wang <wangtong_at_usc.edu>
Date: Sat 28 Oct 2006 - 22:56:49 GMT


Hi,

    I have a data set (data frame) describing some features of the students in a high school in the following format:

Stu ID        Year         feature 1          feature 2      ............. 
1001         1990     
1001         1991
1001         1992
1002         1990
1002         1991
1002         1992
  

   Some features of a few of these students are missing, I would like to ignore those students in my analysis, but I really can' t figure out a neat way to do this in R. I need to remove all the info. of a student (indicated by ID no.) if there are NA's in his/her features.

    Could someone give me a quick tutorial on this ?

I would really appreciate.

best



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 and provide commented, minimal, self-contained, reproducible code. Received on Sun Oct 29 10:03:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 29 Oct 2006 - 01:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.