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.


NumbersInternational/flipTransformations documentation built on Feb. 4, 2025, 10:30 a.m.