as_replicate {proDA} | 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
x <- c("a", "b", "a", "b", "b", "d") all(proDA:::as_replicate(x) == c(1,1,2,2,3,1))