is_flag: Check if a value is a logical flag

View source: R/is_functions.R

is_flagR Documentation

Check if a value is a logical flag

Description

This function checks if a value is a logical scalar (i.e., a single logical value).

Usage

is_flag(x)

Arguments

x

A value to check.

Value

A logical scalar indicating whether x is a logical flag.


assertions documentation built on June 7, 2023, 6:03 p.m.