diff --git a/R/data_tabulate.R b/R/data_tabulate.R index 9452cb4f2..fc2374cef 100644 --- a/R/data_tabulate.R +++ b/R/data_tabulate.R @@ -21,6 +21,10 @@ #' table for printing. This affects only printing, not the returned object. #' @param weights Optional numeric vector of weights. Must be of the same length #' as `x`. If `weights` is supplied, weighted frequencies are calculated. +#' @param proportions Optional character string, indicating the type of +#' percentages to be calculated. Only applies to crosstables, i.e. when `by` is +#' not `NULL`. Can be `"row"`, `"column"` or `"cell"`, to calculate row, column +#' or cell percentages, respectively. #' @param ... not used. #' @inheritParams find_columns #' diff --git a/inst/WORDLIST b/inst/WORDLIST index d48430478..5b12a2523 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -50,6 +50,8 @@ bmwiernik codebook codebooks coercible +crosstable +crosstables csv de doi diff --git a/man/data_tabulate.Rd b/man/data_tabulate.Rd index 79592ac4f..55f7d316c 100644 --- a/man/data_tabulate.Rd +++ b/man/data_tabulate.Rd @@ -55,6 +55,11 @@ as \code{x}. If \code{weights} is supplied, weighted frequencies are calculated. \item{include_na}{Logical, if \code{TRUE}, missing values are included in the frequency or crosstable, else missing values are omitted.} +\item{proportions}{Optional character string, indicating the type of +percentages to be calculated. Only applies to crosstables, i.e. when \code{by} is +not \code{NULL}. Can be \code{"row"}, \code{"column"} or \code{"cell"}, to calculate row, column +or cell percentages, respectively.} + \item{name}{Optional character string, which includes the name that is used for printing.}