get.dummy {dummies} | R Documentation |
Given a data.frame and an optional variables name, return only the columns that are dummy variables
get.dummy(data, name = NULL)
data |
A data.frame with an dummies attributes |
name |
Optional. The name of a variable. |
This uses which.dummy
to identify the dummy columns.
The subset of data
that are dummy columns.
Christopher Brown
data( iris ) d <- dummy.data.frame( iris ) get.dummy( d, 'Species' )