rep_along: Repeat a vector until it matches the length of another vector

Description Usage Arguments Value Examples

View source: R/Rfunctions.R

Description

Repeat a vector until it matches the length of another vector

Usage

1
  rep_along(x, along.with)

Arguments

x

Vector to be repeated

along.with

Vector whose length to match

Value

A vector of same type as x

Examples

1

Example output

  [1] 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1
 [38] 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2
 [75] 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

taRifx documentation built on April 14, 2020, 6:27 p.m.

Related to rep_along in taRifx...