get_class: Extracting a class of variables

Description Usage Arguments Value See Also Examples

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# data.frame
get_class(iris)

# tbl_df
get_class(ggplot2::diamonds)

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

## End(Not run)

bit2r/kodlookr documentation built on Dec. 19, 2021, 9:49 a.m.