dummyze: From Factor To Dummy Variables

Description Usage Arguments Value Author(s)

Description

Transform a factor or a factor-like vector of character into a matrix of dichotomous dummy variables

Usage

1

Arguments

x

factor, character or integer to be dummyzed

Value

a matrix of {-1, 0, 1} of dimension length(x) x G where G is the number of levels (distinct values) of the factor (vector)

Author(s)

Federico Mattiello <federico.mattiello@gmail.com>


SOUP documentation built on May 2, 2019, 8:18 a.m.

Related to dummyze in SOUP...