powered by
Check if an object inherits one (or more) of a vector classes.
some_type( object, types )
A logical indicator
logical
Any R object.
R
A character vector of classes to test against.
character
Alex Zajichek
#Columns of a data frame heart_disease %>% purrr::map_lgl( some_type, types = c("numeric", "logical") )
Run the code above in your browser using DataLab