fix_factors: Cleanup Categorical Variables

fix_factorsR Documentation

Cleanup Categorical Variables

Description

Converts relevant character vectors in the dataset into factors.

Usage

fix_factors(data, newvars)

Arguments

data

The data frame

newvars

A named vector with the variable names.

Value

The modified data frame (if applicable).


BroVic/raampGBV documentation built on Oct. 7, 2022, 11:06 p.m.