View source: R/transforms_text.R
enumerate | R Documentation |
Give numeric identifiers to a vector of values
enumerate(vals)
vals |
The values to enumerate |
Given a vector of some type, assigns a number to each unique value and returns the vector of the values' positions in the unique values. The unique values are tabulated in the order of appearance.
the enumeration of vals
enumerate(letters[1:10])
enumerate(rep(letters[1:3], times=5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.