tbl_distinct_variables: Distinct Set of Variables

View source: R/basic_tbl_tools.R

tbl_distinct_variablesR Documentation

Distinct Set of Variables

Description

Distinct Set of Variables

Usage

tbl_distinct_variables(
  data,
  variables = NULL,
  id_variables = NULL,
  append_slug = NULL,
  to_arrow_table = F
)

Arguments

variables

vector of variables for distinct analays

id_variables

vector of id variables

append_slug

if not 'NULL' slug to add to names

to_arrow_table

if 'TRUE' coerce to arrow

Examples

library(asbtools)
tbl_distinct_variables(iris, "Species")
tbl_distinct_variables(data = ggplot2::diamonds, variables = c("cut", "color"))


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