dummy_code: Dummy code a data.frame

Description Usage Arguments Value

View source: R/utils.R

Description

Dummy code a data.frame

Usage

1
dummy_code(x, sep = "_", factor_names = TRUE)

Arguments

x

a data.frame

sep

character for separating dummy code factors and their levels when constructing names

factor_names

whether to include factor names when creating new names for dummy codes

Value

A dummy-coded version of x.


jolars/eulerr documentation built on Aug. 8, 2019, 8:07 p.m.