idat: indicator dataframe

Description Usage Arguments Value See Also Examples

View source: R/imatdat.R

Description

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

Usage

1
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

1
2
require(MASS)
idat(housing)

heike/extracat documentation built on Nov. 4, 2019, 1:30 p.m.