C_hss_rename: Rename HSS Survey variables

View source: R/C_hss_rename.R

C_hss_renameR Documentation

Rename HSS Survey variables

Description

This function is used to rename the variables in an HSS dataset from the 'Q01' format to more human-readable variable names. This is done based on the XLS form for that particular survey round. The XLS form needs to have 'r_name' columns in both the question & response option sheets for this to work.

Usage

C_hss_rename(dat, dict)

Arguments

dat

the dataframe containing the HSS survey

xlsform

File path to the XLS form for this particular HSS survey.

Value

Returns the dataframe with updated column names


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