R/generate_synthetic_data.R
as_replicate.RdFor 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
#> [1] TRUE