Most R functions have arguments of the form "na.action" or "na.rm" that allow you to specify how you treat NA's. In general, it's not a good idea to replace NA's with numbers.
See also ?na.omit, ?na.action. -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Preuth > Sent: Thursday, September 21, 2006 10:59 AM > To: r-help@stat.math.ethz.ch > Subject: [R] how to ignore "NA" or replace it by another value > > Hello, > > I`m a newbie to R so maybe this question is boring, but I > have a large > table with several empty missing values, which come out as > "NA". How can > i ignore them or replace them by another number? > > Greetings, Thomas > > ______________________________________________ > 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. > ______________________________________________ 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.