get_percent_pattern: Percent pattern helper

get_percent_patternR Documentation

Percent pattern helper

Description

Get a list with pre-filled values for percent_pattern.

Usage

get_percent_pattern(
  margin = c("row", "column", "cell", "none", "all"),
  na = FALSE,
  warn_duplicates = TRUE
)

Arguments

margin

a vector giving the margins to compute.

na

whether to use NA

warn_duplicates

whether to warn if margin has duplicates

Value

a list

Examples

get_percent_pattern(c("cells","row","column"))
get_percent_pattern(c("cells","row","column"), na=TRUE)

DanChaltiel/crosstable documentation built on Jan. 23, 2025, 10:10 a.m.