R/is_finite_s.R

Defines functions is_na_s is_finite_s

Documented in is_finite_s is_na_s

#' Statistics of NAs
#' 
#' These functions calculate statistics of the number of 
#' finite and NAs in a given numerical vector
#' @param x is a numerical vector
#' @keywords data.frame
#' @export
#' @examples 
#' 
is_finite_s<-function(x){
  temp=is.finite(x)
  c(sum(temp),mean(temp))
}

#' @rdname is_finite_s
is_na_s<-function(x){
  temp=is.na(x)
  c(sum(temp),mean(temp))
}
TJetka/TJfunctionsR documentation built on Dec. 16, 2020, 4:27 a.m.