Skip to contents

[Deprecated]

Constructor function which creates a combined formatted analysis function.

Usage

create_afun_compare(
  .stats = NULL,
  .formats = NULL,
  .labels = NULL,
  .indent_mods = NULL
)

Arguments

.stats

(character)
statistics to select for the table.

.formats

(named character or list)
formats for the statistics.

.labels

(named character)
labels for the statistics (without indent).

.indent_mods

(named vector of integer)
indent modifiers for the labels. Each element of the vector should be a name-value pair with name corresponding to a statistic specified in .stats and value the indentation for that statistic's row label.

Value

Combined formatted analysis function for use in compare_vars().

Note

This function has been deprecated in favor of direct implementation of a_summary() with argument compare set to TRUE.

See also