R/replaceNAcomm.R

Defines functions `replaceNAcomm`

`replaceNAcomm` <-
function(x) {
    for (j in 1:ncol(x)) {
        x[is.na(x[,j]), j] <- 0 
    }
    return(x)
}

Try the BiodiversityR package in your browser

Any scripts or data that you put into this service are public.

BiodiversityR documentation built on June 22, 2024, 11:57 a.m.