Is class
is_class.RdTests if an object is of a given class
Examples
is_class("test_me", "character") # TRUE
#> [1] TRUE
is_class(1:10, "numeric") # TRUE
#> [1] FALSE
y = 'hello'
class(y) = "hello"
is_class(y, 'hello')
#> [1] TRUE
is_class.RdTests if an object is of a given class
is_class("test_me", "character") # TRUE
#> [1] TRUE
is_class(1:10, "numeric") # TRUE
#> [1] FALSE
y = 'hello'
class(y) = "hello"
is_class(y, 'hello')
#> [1] TRUE