R/dup_values.R

Defines functions dup_values

Documented in dup_values

#' @title Duplicate Values Function
#' @description This function checks for duplicate VALUES column names in the data dictionary.
#' @param DD.dict Data dictionary.
#' @return Logical, TRUE if only one VALUES column is detected.
#' @export

# int_check called in both integer_check and decimal_check functions
dup_values <- function(DD.dict) {
  vcol <- which(names(DD.dict)=="VALUES")
  if (length(vcol)==1) {
    chk <- TRUE
  } else {
    chk <- FALSE
  }
  return(chk)
}

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.