ezReplicateNumber | R Documentation |
This can be used to get replicate identifiers. For each value unique value in the input it counts incrementally how often it occurs
ezReplicateNumber(x)
x |
a vector with discrete values |
Returns a vector of the same length as the input. If the value at an element is n, then this means, in the original value was the nth occurrence.
x = c("a", "c", "a", "b", "c")
ezReplicateNumber(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.