The get_class() gets class of variables in data.frame or tbl_df.

get_class(df)

Arguments

df

a data.frame or objects inheriting from data.frame

Value

a data.frame Variables of data.frame is as follows.

  • variable : variables name

  • class : class of variables

See also

Examples

if (FALSE) { # data.frame get_class(iris) # tbl_df get_class(ggplot2::diamonds) library(dplyr) ggplot2::diamonds %>% get_class() %>% filter(class %in% c("integer", "numeric")) }