R/boolean.R

Defines functions boolean

Documented in boolean

#' Boolean Check
#'
#' Checks if an object is a Boolean.
#'
#' @param x An \code{R} object.
#'
#' @return A logical value.
#'
#' @note This is an internal function.
#'
#' @author Michele Cianfriglia \email{michele.cianfriglia@@uniroma1.it}
#'
#' @keywords internal

boolean <- function(x) {

  is.logical(x) && length(x) == 1 && !is.na(x)

}
michelecianfriglia/SampleSizeWass documentation built on Feb. 28, 2023, 8:56 a.m.