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)
}
richelbilderbeek/beastscriptr documentation built on April 9, 2024, 2:28 p.m.