Recyle a List of Elements
This function recycles all supplied elments to the maximal dimension.
Recycle(...)
... |
a number of vectors of elements. |
a list of the supplied elementsattr(,"maxdim")
contains the maximal dimension of the recyled list
Andri Signorell <andri@signorell.net>
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]))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.