Description Usage Arguments Details Value Author(s) See Also Examples
Given a data frame and an optional variable name,
which.dummy
identifies which colummns are dummy variables
by the column index.
1 |
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
1 2 3 | data(iris)
dat <- dummy.data.frame(iris)
which.dummy(dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.