counts_wpcts: Analysis function to count levels of a factor with percentage...

View source: R/colby_constructors.R

counts_wpctsR Documentation

Analysis function to count levels of a factor with percentage of the column total

Description

Analysis function to count levels of a factor with percentage of the column total

Usage

counts_wpcts(x, .N_col)

Arguments

x

(factor)
a vector of data, provided by rtables pagination machinery.

.N_col

(integer(1))
total count for the column, provided by rtables pagination machinery.

Value

A RowsVerticalSection object with counts (and percents) for each level of the factor.

Examples

counts_wpcts(DM$SEX, 400)


Roche/rtables documentation built on April 20, 2024, 9:16 p.m.