Replicate Elements of a vector or gvector,
g.rep replicates the 'vector' or
a 'vector' or 'gvector.'
a single integer representing the number of times the object should be replicated.
a single integer representing the number of times each element should be replicated. If each is specified, the times will be ignored.
coerce the output to the given type (i.e
g.rep is somewhat simplified from the R base
rep function. It is called
g.rep to avoid conflict with the
grep function. It can replicate in two different ways. If times is specified then the entire vector is replicated, while when each is specified each element is replicated one at a time.
gvector object with the replicated information
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.