make_dummy: make_dummy

View source: R/basic.R

make_dummyR 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


smarter documentation built on April 3, 2025, 8:46 p.m.

Related to make_dummy in smarter...