[R] How to get R to ignore certain values when analyzing a column in a data table ?

From: Daryl Manning <dwm_at_wakatara.com>
Date: Mon 10 Jul 2006 - 13:01:10 EST

Apologies if this is in (one of the many) manuals somewhere... Trying to switch to R from other stats programs.

Basically, I have a large data table I've dumped from a DB, some of the values which are nulls '-' which I've converted to zeros. I've read it in using read.table fine.

I want R to ignore the zero values when graphing or doing various other calculations.

Is there a way to do this ?

I did try to use NA but kept getting errors that x must be numeric.

thanks in advance,

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 Received on Mon Jul 10 13:05:55 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 Thu 13 Jul 2006 - 18:14:07 EST.

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