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/jGBV documentation built on Oct. 9, 2022, 6:38 a.m.