powered by
is_class(x, name = NULL)
is_class("test_me", "character") # TRUE is_class(1:10, "numeric") # TRUE y = 'hello' class(y) = "hello" is_class(y, 'hello')
Run the code above in your browser using DataLab