Learn R Programming

smarter (version 1.0.1)

make_dummy: make_dummy

Description

Construct a dummy-coded matrix for a single variable

Usage

make_dummy(x)

Value

A binary indicator matrix of ones and zeros

Arguments

x

A numeric or character vector to convert to a dummy matrix