rep_len: Replicate Elements of Vectors and Lists

Description Usage Arguments See Also

Description

A simplified version of rep for when you want to repeat an input to a desired length. Introduced in 3.0.0 - this function has a slight speed advantage compared to rep in 3.0.0 but not here.

Usage

1
  rep_len(x, length.out)

Arguments

x:

a vector (of any mode including a list) or a factor or (for rep only) a POSIXct or POSIXlt or Date object; or an S4 object containing such an object.

length.out

non-negative integer. The desired length of the output vector. Other inputs will be coerced to an integer vector and the first element taken. Ignored if NA or invalid.

See Also

rep, rep.int


Dasonk/future3.0 documentation built on May 6, 2019, 1:37 p.m.