bb_nest: Translate tibble columns into nested submenus.

Description Usage Arguments Examples

View source: R/bb_nest.R

Description

Translate tibble columns into nested submenus. Each successive variable will form another dropdown. The final variable is the end-item. Print with bb_print or cat.

Usage

1
bb_nest(.data, ...)

Arguments

.data

A tibble or dataframe.

...

Variables to nest into dropdown menus. Each variable forms a new set of dropdowns.

Examples

1
2
bb_nest(mtcars, cyl, mpg)
mtcars %>% rownames_to_column() %>% arrange(cyl) %>% bb_nest(cyl, rowname)

jsowder/bitbaR documentation built on April 19, 2020, 6:10 p.m.