Learn R Programming

genpathmox (version 0.7)

factor_to_dummy: Create a dummy matrix from the elements in a factor

Description

Create a dummy matrix from the elements in a factor

Usage

factor_to_dummy(afactor)

Arguments

afactor

a factor (preferably of vectors)

Value

A matrix of dummy variables

Details

Internal function.