tbl_summarise: Summarise across tibble

View source: R/basic_tbl_tools.R

tbl_summariseR Documentation

Summarise across tibble

Description

Summarise across tibble

Usage

tbl_summarise(
  data,
  group_variables = NULL,
  append_slug = NULL,
  widen_variable = NULL,
  count_variable = "count",
  distinct_variables = NULL,
  amount_variables = NULL,
  mean_variables = NULL,
  top_variables = NULL,
  calculation_variable = NULL,
  median_variables = NULL,
  min_variables = NULL,
  pmin_variables = NULL,
  max_variables = NULL,
  pmax_variables = NULL,
  which_max_variables = NULL,
  which_min_variables = NULL,
  unique_variables = NULL,
  unique_concatenator = " | ",
  first_variables = NULL,
  last_variables = NULL,
  variance_variables = NULL,
  sd_variables = NULL,
  coalesce_numeric = F,
  remove_top_amount = T,
  filters = c("UNNAMED", "UNKNOWN"),
  ...
)

Arguments

pmax_variables

Examples

library(tidyverse)
library(asbviz)
ggplot2::diamonds %>%
mutate_if(is.factor, as.character) %>%
tbl_summarise(
unique_variables = "clarity",
calculation_variable = "price",
amount_variable = "price"
)

ggplot2::diamonds %>%
tbl_summarise(
group = "cut",
unique_variables = "clarity",
calculation_variable = "price",
amount_variable = "price"
)

ggplot2::diamonds %>%
tbl_summarise(
widen_variable = "cut",
unique_variables = "clarity",
calculation_variable = "price",
amount_variable = "price"
)




abresler/asbtools documentation built on July 28, 2022, 11:04 p.m.