get_class {dlookr}R Documentation

Extracting a class of variables

Description

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

Usage

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.

See Also

find_class.

Examples

# data.frame
get_class(iris)

# tbl_df
get_class(ggplot2::diamonds)

library(dplyr)
ggplot2::diamonds %>%
  get_class() %>% 
  filter(class %in% c("integer", "numeric"))

[Package dlookr version 0.6.3 Index]