recode_dic_items: Recode Dictionary Items

View source: R/recode_dic_items.R

recode_dic_itemsR Documentation

Recode Dictionary Items

Description

This function takes a data frame and recodes specified variables based on the dictionary.

Usage

recode_dic_items(df, var_recoding = "scores", prefix = "(recoded)")

Arguments

df

a data frame that contains variables to be recoded

var_recoding

the name of a variable within the dictionary information

prefix

Prefix is added to the item label of a recoded item

Value

A recoded data frame


jazznbass/scaledic documentation built on July 19, 2023, 12:50 a.m.