disj | R Documentation |
This function transforms a categorical vector into a matrix of indicators.
disj(strata_input)
strata_input |
A vector of integers that represents the categories. |
A matrix of indicators.
strata <- rep(c(1,2,3),each = 4)
disj(strata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.