Learn R Programming

extracat (version 1.7-6)

idat: indicator dataframe

Description

Converts all factor variables in a dataframe to a set of binary variables.

Usage

idat(x, allcat = FALSE, keep = "Freq")

Arguments

x

dataframe

allcat

Whether or not to keep all categories or leave the last one out.

keep

Variables which are kept unchanged such as a frequency variable.

Value

dataframe

See Also

Burt, imat

Examples

Run this code
# NOT RUN {
require(MASS)
idat(housing)
# }

Run the code above in your browser using DataLab