get_percent_pattern function

Percent pattern helper

Percent pattern helper

Get a list with pre-filled values for percent_pattern.

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

Returns

a list

Examples

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