var.dummy: Generate dummy variable

Description Usage Arguments Details Value Author(s) See Also

View source: R/var.dummy.R

Description

Function to expand factor variables in dummy variables in a data.frame. See details.

Usage

1

Arguments

data

A data.frame.

Details

Variables in the data.frame of class factor is expanded in dummy variables. Each level of factor produce a new column in the dataframe, with presence (1) or absense (0) of level. The name of columns is a combination of orginal variable name plus the level separate by underscore ( _ ). Ordered factor and character class are not expanded.

Value

data

The data with all variables of class factor expanded.

together

A list with sugestion to group of traits that are analysed together.

Author(s)

Vanderlei Julio Debastiani <vanderleidebastiani@yahoo.com.br>

See Also

syncsa, organize.syncsa, var.type


vanderleidebastiani/SYNCSA documentation built on Sept. 4, 2020, 10:57 p.m.