R/is_one_na.R

Defines functions is_one_na

Documented in is_one_na

#' Determines if x is one NA
#' @param x the object to be determined if it is one NA
#' @return TRUE if x is one NA, FALSE otherwise
#' @examples
#' check_empty_beautier_folder()
#'
#'
#' check_empty_beautier_folder()
#' @author Richèl J.C. Bilderbeek
#' @export
is_one_na <- function(x) {
  if (is.function(x)) return(FALSE)
  length(x) == 1 && is.na(x)
}

Try the beautier package in your browser

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

beautier documentation built on Nov. 2, 2023, 5:08 p.m.