R/CheckNull_function.R

Defines functions CheckNulls

Documented in CheckNulls

#' @title Check Nulls
#'
#' @description This function checks if data is NULL
#' @param x data
#' @export
#' @return NA if null, data otherwise
#'
CheckNulls <- function(x) {
  if(is.null(x)==TRUE) {
    return(NA)
  } else {
    return(x)
  }
}
MatthewSmith430/CompaniesHouse documentation built on Jan. 28, 2024, 3:08 a.m.