get_class | R Documentation |
The get_class() gets class of variables in data.frame or tbl_df.
get_class(df)
df |
a data.frame or objects inheriting from data.frame |
a data.frame Variables of data.frame is as follows.
variable : variables name
class : class of variables
find_class
.
# data.frame
get_class(iris)
# tbl_df
get_class(ggplot2::diamonds)
library(dplyr)
ggplot2::diamonds %>%
get_class() %>%
filter(class %in% c("integer", "numeric"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.