helper_count_perc: Frequencies and percentages

View source: R/helpers.R

helper_count_percR Documentation

Frequencies and percentages

Description

It calculates percentages and frequencies, concatenating them to present on a table.

Usage

helper_count_perc(var, digits, ...)

Arguments

var

a numeric vector.

digits

a numeric value specifying the number of digits to present the results.

...

additional input arguments that may be used when creating your own function.

Details

This function can be modified by the user, but input and output should be kept the same.

Value

a list with the first element name as the measure name and the second element as the value for a given variable.


dnzmarcio/ntimes documentation built on Jan. 4, 2024, 2:23 p.m.