hello,
I have a longitudinal data:
idn     mort30      newinfec
1           0               1
1           0               1
1           0               1
1           0               1
2           1               1
2           1               1
2           1               1
3           0               0
3           0               0
3           0               0
3           0               0
3           0               0

and i want to filter out those obs. that has mort30==1 (mort30 is constant
over idn).
how can i use "if...else" and filter out those unwanted obs.?
I appriciate the help,
sigalit.

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to