check_modes: Check modes of objects

View source: R/check_modes.R

check_modesR Documentation

Check modes of objects

Description

Check modes of objects

Usage

check_modes(..., mode_to_confirm = NULL)

Arguments

...

R objects.

mode_to_confirm

The function will test whether each input is of this mode. For example, check_modes(a, mode_to_confirm = "numeric"), the function will check whether the object a is numeric.

Examples

check_modes(1L, mode_to_confirm = "numeric")
check_modes(
TRUE, FALSE, 1L, 1:3, 1.1, c(1.2, 1.3), "abc", 1 + 2i, intToBits(1L),
mode_to_confirm = "numeric")

kim documentation built on Oct. 9, 2023, 5:08 p.m.