On Dec 30, 2010, at 4:54 PM, Charlène Cosandier wrote:
Hi,
I want to drop observations with value 0 from my data.frame "dta"
for each
of the two variables "c01" and "ctotale". How can I do that?
Thanks
subset(dta, !( c01==0 | ctotale==0) )
... remembering of course to assign this result to some appropriately
named object.
Charlène Lisa Cosandier
[[alternative HTML version deleted]]
--
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@r-project.org 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.