R/not.na.R

Defines functions not.na

Documented in not.na

#' Not NA
#'
#' Opposite of is.na(). Check if entry is not NA
#'
#' @param x vector entry
#' @return a boolean value to indicate if entry is NA
#' @examples
#' not.na(NA) # FALSE
#' not.na(NULL) # logical(0)
#' if(not.na(45)) message("something") # TRUE
#'
#' @export

not.na <- function(x)!{
  is.na(x)
}

Try the quickcode package in your browser

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

quickcode documentation built on April 11, 2025, 5:49 p.m.