rep_each | R Documentation |
This is a slight modification of rep
in basic package. It replicates
each element of a vector one by one to construct a new vector.
rep_each(x, times = 2)
x |
a vector |
times |
the number of replication times of each element. |
seq_approximate
,
rep(1:10, 2) rep_each(1:10, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.