Learn R Programming

crosstable (version 0.8.0)

get_percent_pattern: 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
)

Value

a list

Arguments

margin

a vector giving the margins to compute.

na

whether to use NA

warn_duplicates

whether to warn if margin has duplicates

Examples

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

Run the code above in your browser using DataLab