factor_format: reformat haven and labelled read ins to have no factors or...

View source: R/read_datasets.R

factor_formatR Documentation

reformat haven and labelled read ins to have no factors or labels

Description

reformat haven and labelled read ins to have no factors or labels

Usage

factor_format(res, reformat = FALSE, all_lower = TRUE)

Arguments

res

dataset to be formatted

reformat

Boolean whether to remove all factors and labels and just return the unfactored data. Default = FALSE

all_lower

Logical indicating whether all value labels should be lower case. Default to 'TRUE'.

Value

list with the formatted dataset and the code descriptions


OJWatson/rdhs documentation built on April 4, 2024, 10:46 a.m.