bp_label_variables: Convert variables to labelled variables in cleanup stage

View source: R/extensions-base.R

bp_label_variablesR Documentation

Convert variables to labelled variables in cleanup stage

Description

The haven package has a handy tool called "labeled vectors", which are like factors that can be interpreted in other statistical software like STATA and SPSS. See haven::labelled() for more information on the type. Running this on a blueprint will instruct the blueprint to convert all variables with non-NA title, description, or coding fields to labeled vectors.

Usage

bp_label_variables(blueprint)

Arguments

blueprint

A blueprint

Value

An amended blueprint with variable labelling in the cleanup phase set


nyuglobalties/blueprintr documentation built on July 16, 2024, 10:27 a.m.