Description Usage Arguments Details Value

A helper function for transforming a vector into an indicator matrix.

1 |

`x` |
A vector (which will be converted to a factor). |

`add_names` |
Logical specifying whether to add dimnames to the resulting indicator matrix. |

This is essentially the function `class.ind`

from the package MASS.

An indicator matrix.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.