Learn R Programming

taRifx (version 1.0.6.2)

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

Description

Repeat a vector until it matches the length of another vector

Usage

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

Run this code
# NOT RUN {
rep_along(1:4,letters)
# }

Run the code above in your browser using DataLab