R/delet_na_df.mtr.R

Defines functions delet_na_df.mtr

#' @importFrom stats na.omit
delet_na_df.mtr<-function(data){
    if (any(is.na(data))){
        nrow.origin=nrow(data)
        data=na.omit(data)
        nrow.new=nrow(data)
        diff=nrow.origin-nrow.new
        message()
        msg=paste0(diff,' rows were deleted because of missing value.')
        message(msg)
        message()
        message()
        data
    }else{
        data
    }
}

Try the fastStat package in your browser

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

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.