R/numNaDS.R

Defines functions numNaDS

Documented in numNaDS

#' 
#' @title Counts the number of missing values
#' @description this function just counts the number of missing entries 
#' in a vector. 
#' @param xvect a vector
#' @return an integer, the number of missing values
#' @author Gaye, A.
#' @export
#'
numNaDS <- function(xvect){
  
  out <- length(which(is.na(xvect)))
  return (out)
  
}

Try the dsBase package in your browser

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

dsBase documentation built on Aug. 8, 2025, 6:05 p.m.