rescue_attributes: Rescue lost attributes

View source: R/data_wrangling.R

rescue_attributesR Documentation

Rescue lost attributes

Description

Taken from codebook You can use this function if some of your items have lost their attributes during wrangling Variables have to have the same name (Duh) and no attributes should be overwritten. But use with care. Similar to labelled::copy_labels().

Usage

rescue_attributes(df_no_attributes, df_with_attributes)

Arguments

df_no_attributes

the data frame with missing attributes

df_with_attributes

the data frame from which you want to restore attributes


rubenarslan/formr documentation built on Feb. 6, 2024, 1:18 a.m.