r_help | R Documentation |
base::rep
These functions atomize ...
arguments, converting them to an atomic vector before replication.
r_help()
r(r, ...)
e(e, ...)
re(r, e, ...)
er(e, r, ...)
r |
A complete positive whole-number scalar giving the number of replications of entire vectors. |
... |
One or more objects containing atomic values to be replicated (atomized before replication). |
e |
A complete positive whole-number scalar giving the number of times each value is to be replicated in place. |
An atomic vector.
r()
: Calls rep.int(av(...), r)
.
e()
: Calls rep.int(av(...), each = e)
.
re()
: Calls rep(av(...), times = r, each = e)
.
er()
: Calls rep(av(...), times = r, each = e)
.
r(2, 0:2, 3)
e(3, 0:2, 3)
re(2, 3, 0:2, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.