Dear R friends
My goal is to eliminate this specific group(1) if the # of NAs in this
group greater than
50%(specifically say greater than 3). Would you please show me how to do
it.
I have a sample data as following:
Thanks a lot.
Kevin Lin
y group f1 f2 f3
30 NA 1 1 1 1
27 NA 1 1 2 2
48 NA 1 2 1 2
40 -0.6066416 1 2 2 1
24 -0.8323225 1 3 2 2
25 1.3401226 2 1 1 1
13 1.2619082 2 1 2 1
14 -0.4323220 2 3 1 1
36 0.8406529 2 3 2 2
21 0.9604758 3 1 2 1
18 0.9562072 3 2 1 1
45 1.1285016 3 2 1 1
50 NA 4 1 1 1
11 NA 4 1 1 2
41 -1.1017167 4 2 1 1
37 0.9661283 4 3 1 1
39 -0.2540905 4 3 1 2
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html