T_hss_overview_single: Create overview table for a group of similar 'select-one'...

View source: R/T_hss_overview_single.R

T_hss_overview_singleR Documentation

Create overview table for a group of similar 'select-one' questions

Description

This creates overview tables for multiple questions that contain the same response options. For example when the same question is repeated for different events. This implementation is specifically for 'select-one' questions. For 'select-multiple' questions see T_hss_overview_multi

Usage

T_hss_overview_single(df, vars, percent = TRUE)

Arguments

df

The dataframe containing the questions

vars

A commom character string that is shared between all relevant variables.

percent

Set to TRUE to display percentages, set to FALSE to display counts. Default is TRUE

Value

A dataframe with responses for the selected variables.


RenRMT/hsstools documentation built on April 14, 2025, 7:10 p.m.