Amit Patel <[EMAIL PROTECTED]> [Tue, Sep 16, 2008 at 03:32:01PM CEST]:
> Does anyone know an easy way to convert all the zero values in a imported csv
> table into NA's
Depends on the data structure you gave your imported table. In a single numeric
vector (named, say, vec), the syntax is
is.na(vec[vec==0]) <- TRUE
--
Johannes Hüsing There is something fascinating about science.
One gets such wholesale returns of conjecture
mailto:[EMAIL PROTECTED] from such a trifling investment of fact.
http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
______________________________________________
[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
and provide commented, minimal, self-contained, reproducible code.