Skip to content
Prev 327619 / 398502 Next

replace Na values with the mean of the column which contains them

On 29-07-2013, at 18:39, "iza.ch1" <iza.ch1 at op.pl> wrote:

            
or this:

apply(de,2, function(x) {x[which(is.na(x))] <- mean(x,na.rm=TRUE);x})


Berend