Get the dummy variable columns from a data frame.

Description

Given a data.frame and an optional variables name, return only the columns that are dummy variables

Usage

1

Arguments

data

A data.frame with an dummies attributes

name

Optional. The name of a variable.

Details

This uses which.dummy to identify the dummy columns.

Value

The subset of data that are dummy columns.

Author(s)

Christopher Brown

See Also

which.dummy, dummy.data.frame

Examples

1
2
3
    data( iris ) 
    d <- dummy.data.frame( iris )
    get.dummy( d, 'Species' )