R/sub_na.R

Defines functions sub_na

Documented in sub_na

#' Sub NA
#' @description Substitute NA with another value
#' @export


sub_na <-
        function(vector, sub_value) {
                x <- vector
                x[is.na(x)] <- sub_value
                return(x)
        }
meerapatelmd/centipede documentation built on Jan. 1, 2021, 9:27 a.m.