char2fct: Convert character variables to factor

View source: R/utilities.R

char2fctR Documentation

Convert character variables to factor

Description

Provided a vector of variable names this function converts any character variables into factors. Has no affect on numeric or existing factor variables

Usage

char2fct(data, vars = NULL)

Arguments

data

A data.frame

vars

a character vector of variables in data


insightsengineering/rbmi documentation built on Feb. 28, 2025, 3:34 a.m.