View source: R/generate_synthetic_data.R
as_replicate | R Documentation |
For a vector with repeated values return a vector where each element is the count how often the element was observed previously
as_replicate(x)
x |
a vector with repeated elements |
numeric vector
order
, rank
x <- c("a", "b", "a", "b", "b", "d")
all(proDA:::as_replicate(x) == c(1,1,2,2,3,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.