Description Usage Arguments Value See Also Examples
View source: R/generate_synthetic_data.R
For a vector with repeated values return a vector where each element is the count how often the element was observed previously
1 | as_replicate(x)
|
x |
a vector with repeated elements |
numeric vector
1 2 | 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.