[R] Replacing missing values

Jean Vidal jean.vidal at freesurf.fr
Tue May 8 19:47:04 CEST 2001

I'm discovering R (very impressive), and didn't find in the docs a simple 
method for replacing, in a data frame, missing values (NA) with the 
column's mean (or any other method for reconstructing missing values when 
Thanks in advance for your help.

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list