make_dummy {smarter}R Documentation

make_dummy

Description

Construct a dummy-coded matrix for a single variable

Usage

make_dummy(x)

Arguments

x

A numeric or character vector to convert to a dummy matrix

Value

A binary indicator matrix of ones and zeros


[Package smarter version 1.0.1 Index]