dot-lapply_rep_len: Replicate all vector elements of a list

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

spinifex documentation built on May 29, 2024, 1:23 a.m.