recycle

0th

Percentile

Recycle arguments

Explicit recycling of arguments to make them all have the same length.

Usage
recycle(...)
Arguments
...
Arguments, usually vectors.
Value

A list of vectors, all with the same length.

Note

The function is based on rep_len, which drops attributes (hence this being most appropriate for vector inputs).

See Also

rep_len.

Aliases
  • recycle
Examples
library(assertive.strings) ## Not run: # # z is the longest argument, with 6 elements # recycle(x = 1:4, y = list(a = month.abb, b = pi), z = matrix(1:6, nrow = 3)) # ## End(Not run)
Documentation reproduced from package assertive.strings, version 0.0-3, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.