Learn R Programming

do (version 2.0.0.1)

dump.it: Create dump matrix for a vector

Description

Create dump matrix for a vector

Usage

dump.it(..., include.name = TRUE)

Value

a dump matix contains 0 and 1

Arguments

...

one vector

include.name

logical, default is TRUE, wether to include name of variable

Examples

Run this code
x=c('a','b','c','a','a')
dump.it(x)
dump.it(mtcars$am)
dump.it(mtcars[,'am'])

Run the code above in your browser using DataLab