.lapply_rep_len {spinifex} | R Documentation |
Replicate all vector elements of a list
Description
Internal function. To be applied to aes_args
and identity_args
,
replicates vectors of length data to length of data*frames for animation.
Usage
.lapply_rep_len(list, to_length, expected_length)
Arguments
list |
A list of arguments such as those passed in |
to_length |
Scalar number, length of the output vector; the number of rows in the data frames to replicate to. |
expected_length |
Scalar number, the expected length of the each element
of |
See Also
Other Internal utility:
.bind_elements2df()
,
.init4proto
Examples
## This function is not meant for external use
[Package spinifex version 0.3.7.0 Index]