R/int_check.R

Defines functions int_check

Documented in int_check

#' @title Integer Check Base Function
#' @description This function checks for integer values.
#' @param data Number or vector of numbers.
#' @return Logical, TRUE if all non-missing entries in the input vector are integers.
#' @export

# int_check called in both integer_check and decimal_check functions
int_check <- function(data) {
  (isTRUE(all(data == floor(data), na.rm=TRUE)))
}

Try the dbGaPCheckup package in your browser

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

dbGaPCheckup documentation built on Sept. 27, 2023, 5:06 p.m.