| which.dummy {dummies} | R Documentation |
Given a data frame and an optional variable name,
which.dummy identifies which colummns are dummy variables
by the column index.
which.dummy(data, name=NULL)
data |
An object with a 'dummies' attribute |
name |
Optional. The name of a column that has been expanded to a dummy variable. |
Given a data frame and an optional variable name, returns the indices of the dummy columns.
Requires an dummies attribute, usually created by
dummy.data.frame.
integer vector of column indices corresponding to the dummy variable(s)
Christopher Brown
data(iris) dat <- dummy.data.frame(iris) which.dummy(dat)