R/get_naSPLINE.R

#' Functions to replace each NA with interpolated values
#' @description Functions to replace each NA with interpolated values
#' @param x Variables to be used for interpolation 
#' @examples 
#' z <- c(11, NA, 13, NA, 15, NA)
#' get_naSPLINE(z)

get_naSPLINE<-function(x){SPLINE= na.spline(x)
                               return(SPLINE)}
mssm-msf-2019/BiostatsALL documentation built on May 22, 2019, 12:16 p.m.