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.

bp_label_variables(blueprint)

Arguments

blueprint

A blueprint

Value

An amended blueprint with variable labelling in the cleanup phase set