T_hss_label: Apply text labels to tables.

View source: R/T_hss_label.R

T_hss_labelR Documentation

Apply text labels to tables.

Description

Apply text labels to the specified table. Labels are taken from the dictionaries created from the XLS forms. This converts the table to a flextable object. Works for EN or AR text labels. If used with AR text labels some optional formatting is applied to correctly display text.

Usage

T_hss_label(table, var, grouping, dict, lang = "en")

Arguments

table

the table for which labels should be applied

var

the variable name. Used to determine the question label and to look up the appropriate response labels.

grouping

the grouping variable. Will be used to apply appropriate column headers

dict

The variable/value dictionary object

language

To determine the language of labels to be applied.

Value

A flextable object with the original table values and appropriate question & response labels.


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