as_strata | R Documentation |
Collapse multiple categorical variables into distinct unique categories. e.g.
as_strata(c(1,1,2,2,2,1), c(5,6,5,5,6,5))
would return
c(1,2,3,3,4,1)
as_strata(...)
... |
numeric/character/factor vectors of the same length |
## Not run:
as_strata(c(1,1,2,2,2,1), c(5,6,5,5,6,5))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.