not: Uses the logical not

View source: R/not.r

notR Documentation

Uses the logical not

Description

A wrapper function for !. This is the same thing as bang().

Usage

not(x)

Arguments

x

a logical object

Value

a logical object

Examples

# load the data
data(nhanes)

# check whether values of smq020 are not missing
nhanes$smq020 |> is.na() |> not()

# check whether values of smq020 are not missing
nhanes |> dollar(smq020) |> is.na() |> not()

baseverse documentation built on April 29, 2026, 1:08 a.m.