Learn R Programming

cheapr (version 1.2.0)

rep: cheapr style repeat functions

Description

cheapr style repeat functions

Usage

cheapr_rep(x, times)

cheapr_rep_len(x, length)

cheapr_rep_each(x, each)

Value

Repeated out object.

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.