dummy_encode: Dummy-code a data frame (numeric pass-through, factors...

View source: R/get_FSdata_helpers.R

dummy_encodeR Documentation

Dummy-code a data frame (numeric pass-through, factors expanded)

Description

Dummy-code a data frame (numeric pass-through, factors expanded)

Usage

dummy_encode(df)

Arguments

df

Data frame with numeric and/or factor columns.

Value

Data frame with numeric columns unchanged and factor columns expanded via acm.disjctif.

Examples

df <- data.frame(age = c(40, 55, 70), grade = factor(c("1", "2", "3")))
dummy_encode(df)

forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.