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 20, 2017, 5:29 a.m.

Search within the dummies package
Search all R packages, documentation and source code