FactorToIndicators: 'FactorToIndicators'

View source: R/variable.R

FactorToIndicatorsR Documentation

FactorToIndicators

Description

Convert a factor variable to a matrix whose columns are binary variables representing one of the levels from the factor variable.

Usage

FactorToIndicators(variable, name = NULL)

Arguments

variable

The factor variable to convert.

name

The name of the input variable.


Displayr/flipTransformations documentation built on June 2, 2025, 12:51 p.m.