Character vector containing the names of the dummy variables in the data.frame.
facVar
Name of the factor variable, that should be created.
nameEmptyCategory
a character of length 1 that defines the name of cases
for which no dummy is equal to one.
Details
The content of a single factor variable can alternatively be stored in multiple dichotomous dummy variables coded with 0/1 or NA/1. 1 always has to refer to "this category applies". The function requires factor levels to be exclusive (i.e. only one factor level applies per row.).