dummy: Generate a data.frame of dummy variables given a vector

Description Usage Arguments Value Examples

View source: R/dummy.R

Description

Generate a data.frame of dummy variables given a vector

Usage

1
dummy(x, prefix = "")

Arguments

x

a vector

prefix

name prefix of returned data.frame columns

Value

a data.frame to be used with cbind

Examples

1
2
rep(1:3, 4)
dummy(rep(1:3, 4))

lbraglia/yapomif documentation built on May 20, 2019, 11:26 p.m.