is_check: Check type of object

View source: R/type_check.R

is_checkR Documentation

Check type of object

Description

Check type of object

Usage

is_check(x, fn)

Arguments

x

Object to check

fn

Function to check against, any ⁠is.*⁠ function, e.g. is.character

Value

Logical

Author(s)

EDG

Examples

## Not run: 
is_check("papaya", is.character) # TRUE
is_check(c(1, 2.5, 3.2), is.integer) # FALSE
is_check(iris, is.list) # TRUE

## End(Not run)

egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.