Get variable class
get_class(dat)
dat | Dataset to evaluate |
---|
Vector with class information for each variable
Get variable class information for each column in a data.frame
get_class(mtcars)#> mpg cyl disp hp drat wt qsec vs #> "numeric" "numeric" "numeric" "numeric" "numeric" "numeric" "numeric" "numeric" #> am gear carb #> "numeric" "numeric" "numeric"