Learn R Programming

spinifex (version 0.3.2)

.lapply_rep_len: 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 aes_args and identity_args.

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 list.

See Also

Other Internal utility: .bind_elements2df(), .init4proto

Examples

Run this code
# NOT RUN {
## This function is not meant for external use
# }

Run the code above in your browser using DataLab