rep: cheapr style repeat functions

repR Documentation

cheapr style repeat functions

Description

cheapr style repeat functions

Usage

cheapr_rep(x, times)

cheapr_rep_len(x, length)

cheapr_rep_each(x, each)

Arguments

x

A vector or data frame.

times

⁠[integer(n)]⁠ A vector of times to repeat elements of x. Can be length 1 or the same length as vector_length(x).

length

⁠[integer(1)]⁠ - Length of the recycled result.

each

⁠[integer(1)]⁠ - How many times to repeat out each element of x.

Value

Repeated out object.


cheapr documentation built on June 8, 2025, 11:35 a.m.