Description Usage Arguments Value Author(s) References See Also Examples
Given a vector, returns the replicates in order
1 | replicates(x)
|
x |
character or numeric vector |
numeric vector
Henrique Dallazuanna
R-help mailing list
1 2 3 |
x <- c('a','b','a','a','b','a','c','c','c')
data.frame(val=x,rep=replicates(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.