get.dummy: Get the dummy variable columns from a data frame.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/get.dummy.R

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' )

dummies documentation built on May 2, 2019, 3:43 p.m.