Learn R Programming

genpathmox (version 0.7)

vector_to_dummy: Create a dummy matrix from the elements in a vector

Description

Create a dummy matrix from the elements in a vector

Usage

vector_to_dummy(avector)

Arguments

avector

a numeric vector

Value

A matrix of dummy variables

Details

Internal function.