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)
        }
patelm9/centipede documentation built on Dec. 4, 2020, 3:09 a.m.