Describe"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

The explore package offers a simplified way to describe data.

We use synthetic data in this example

library(dplyr)
library(explore)

data <- create_data_buy(obs = 100)
glimpse(data)

Describe table

data %>% describe_tbl()

Describe all variables

data %>% describe_all()
data %>% 
  describe_all() %>%
  filter(unique == 1)

Describe one variable

data %>% describe(age)
data %>% describe(buy)


Try the explore package in your browser

Any scripts or data that you put into this service are public.

explore documentation built on Oct. 11, 2023, 9:07 a.m.