chk_is_class: Check that object or elements of list inherit from specified...

Description Usage Arguments Examples

Description

Check that object or elements of list inherit from specified class

Usage

1
2
3
4
5
6
7

Arguments

x

An object, or a list of objects

name

The name for x that will be used in error messages.

class

Name of a class.

Examples

1
2
3
4
5
x <- "a"
class <- "character"
chk_is_class_obj(x, name = "x", class = class)
x <- list(c("a", "b"), "c")
chk_is_class_list(x, name = "x", class = class)

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.