replicate | R Documentation |
Replicate Each Elements of Vectors
rep_n(x, each)
rep_character(x, each)
x |
vectors |
each |
one or more numbers for replication |
replicated vectors
rep_n(c('ab','cde','k','op'),5)
rep_n(c('ab','cde','k','op'),c(4,6))
rep_n(c('ab','cde','k','op'),c(1,2,3,4))
rep_character(c('ab','cde','k','op'),5)
rep_character(c('ab','cde','k','op'),c(4,6))
rep_character(c('ab','cde','k','op'),c(1,2,3,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.