MCsmry_list: MCsmry list function

View source: R/summary.R View source: R/summary.R

MCsmry_listR Documentation

MCsmry list function

Description

this function gives a table with the count & pct of all cases containing each element in the list

multiple choice summary list summarizes variables that have multiple choice options listed with a delimeter this function gives a table with the count & pct of all cases containing each element in the list. this function should be used over regular mcsmry when the delimiter is essential for distinguishing the list elements as is sometimes the case with multiple choice number values.

Usage

MCsmry_list(elementlist, variable, total = FALSE, delimiter = ", ")

MCsmry_list(elementlist, variable, total = FALSE, delimiter = ", ")

Arguments

elementlist

the list of multiple choice elements in the variable to look for and count

variable

the variable you wish to summarize

total

boolean argument determining if a total should be added to the bottom of the table. defaults to FALSE

delimiter

the delimiter you to use to separate your data into a list format

Examples

MCsmry_list_function()
MCsmry_list_function()

clmacleod/highlandr documentation built on April 17, 2025, 3:30 a.m.