rvlabel: Replace a specific value label in an labelled_spss object.

Description Usage Arguments Details Value

View source: R/Data_Mgt_Functions.R

Description

The function replaces a specific value label with a new label.

Usage

1
rvlabel(x, from = "Excluded (user-missing)", to = "Excluded user-missing")

Arguments

x

A variable with class = labelled_spss.

from

A character value for the old label to be replaced.

to

A character value for the new label that will replace the old one.

Details

=============================================================================

This function is primarily used to get around the fact that parentheses in the value labels imported with some SPSS data files cause a problem with some of our R code. this allows us to quickly replace those value labels.

Value

An updated variable with class = labelled_spss.


sjpierce/SSACHR documentation built on Jan. 16, 2022, 12:39 a.m.