Internal function. To be applied to aes_args and identity_args, replicates vectors of length data to length of data*frames for animation.

.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

## This function is not meant for external use