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. 26, 2024, 6:43 a.m.