Build a summary table with prj_tbl_summarise() as per column and row specifications provided via prj_tbl_cols() and prj_table_rows() respectively.

prj_tbl_summarise(.data)

prj_tbl_rows(.data, ...)

prj_tbl_cols(.data, ...)

Arguments

.data

A dataframe.

...

A column or row specification. Row specifications may be supplied as symbols/expressions or lists of symbols/expressions. Column specifications may be supplied as expressions only.

Value

A tibble

Details

See vignette("projectable_workflow") for usage details.

Examples

# Create a table made up of `projectable_col`s
my_tbl <- prj_tbl_rows(
  .data = mtcars,
  Cylinders = cyl,
  Transmission = list(Automatic = am %in% 0, Manual = am %in% 1),
)

my_tbl <- prj_tbl_cols(
  .data = my_tbl,
  `V-Shaped` = col_freq(n = vs %in% 1, N = vs %in% 0:1),
  `Not V-shaped` = col_freq(n = vs %in% 0, N = vs %in% 0:1)
)

my_tbl <- prj_tbl_summarise(.data = my_tbl)