Description Usage Arguments Value Examples
Rows of an indicator matrix correspond to "observations". Columns correspond to "conditions" (e.g., levels of a factor). Each observation "belongs" to only one condition. This membership is indicated by a 1 in the corresponding column (otherwise 0).
1 | indicator(x)
|
x |
character vector of length n |
Indicator matrix. Column names taken from unique(x).
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.