Recodes a dataset with nominal variables so that the nominal variables are replaced by binary variables for the categories.

1 |

`x` |
data matrix or data frame. The data need to be organised case-wise, i.e., if there are categorical variables only, and 15 cases with values c(1,1,2) on the 3 variables, the data matrix needs 15 rows with values 1 1 2. (Categorical variables could take numbers or strings or anything that can be coerced to factor levels as values.) |

`categorical` |
vector of numbers of variables to be recoded. |

A list with components

`data` |
data matrix with variables specified in |

`variableinfo` |
list of lists. One list for every variable in the
original dataset, with four components each, namely |

Christian Hennig c.hennig@ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche

1 2 3 4 5 6 7 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.