R/dc_validation_location_empty.R

Defines functions dc_validation_location_empty

Documented in dc_validation_location_empty

#' @rdname dc_validation_location_empty
#' 
#' @param TARGET a vector of location information. To pass it must be non-empty
#' entry. 
#' 
dc_validation_location_empty <- function(TARGET = NULL) {
  result <- TARGET %>%
    gsub(" ", "", .) # Remove possible spaces
  result <- !is.na(result) & result != "" # Check if not empty
  return(result)
}
bd-R/bdchecks documentation built on Oct. 8, 2021, 5:10 p.m.