R/NAtoZero.r

Defines functions NAtoZero

Documented in NAtoZero

NAtoZero <- function(v, value = 0){
    v[is.na(v) == TRUE] <- value
    return(v)
}

Try the reporttools package in your browser

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

reporttools documentation built on Oct. 12, 2021, 5:06 p.m.