safe_factorize: Safely make the right things factors in data.frames

Description Usage Arguments Value Author(s)

View source: R/safe_factorize.R

Description

If you have a formula with as.factor(var) in it, this function will create a new column with the factor version of var with a column called as.factor(var). Uses model.frame

Usage

1

Arguments

formula

an R formula

data

a data.frame

Value

data, with (maybe) some extra columns

Author(s)

David L Miller


Distance documentation built on Jan. 13, 2021, 10:43 p.m.