rep: cheapr style repeat functions

repR Documentation

cheapr style repeat functions

Description

cheapr style repeat functions

Usage

cheapr_rep(x, times)

rep_(x, times)

cheapr_rep_len(x, length)

rep_len_(x, length)

cheapr_rep_each(x, each)

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(n)]⁠ - How many times to repeat out each element of x.

Value

Repeated out object.


cheapr documentation built on Nov. 28, 2025, 5:06 p.m.