Discrete data summary in long format
the data frame to summarize; the user should filter or subset
so that data contains exactly the records to be summarized; pmtables will
not add or remove rows prior to summarizing data
the columns to summarize; may be character vector or quosure
variable name for column spanner
a name to use for the complete data summary
table column name to use for data summaries across
levels of span if it is provided
where to include a data summary across subgroups;
use none to drop the summary from the table
a named list to use for renaming columns (see details and examples)
use span argument instead
the denominator to use when calculating percent for each level;
group uses the total number in the chunk being summarized; total uses
the total number in the data set; historically, group has been used as the
default.
An object with class pmtable; see class-pmtable.
The data summary for all cells in the table is count (percent). The number
of data records in each column variable level is given under the column
title as n.
When group is selected for denom, percent is calculated with
denominator set to n, the total for each column variable level. When
total is selected for denom, then percent is calculated by the total
number of records in the input data.
The notes in this table are generated with pt_cat_long_notes().