Recycle

0th

Percentile

Recyle a List of Elements

This function recycles all supplied elments to the maximal dimension.

Keywords
utilities
Usage
Recycle(...)
Arguments
...
a number of vectors of elements.

Value

attr(,"maxdim") contains the maximal dimension of the recyled list

See Also

rep, replicate

Aliases
  • Recycle
Examples
Recycle(x=1:5, y=1, s=letters[1:2])

z <- Recycle(x=letters[1:5], n=2:3, sep=c("-"," "))
sapply(1:attr(z, "maxdim"), function(i) paste(rep(z$x[i], times=z$n[i]), collapse=z$sep[i]))
Documentation reproduced from package DescTools, version 0.99.19, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.