R: Expand the length of a vector

vec_repeat {vctrs} | R Documentation

## Expand the length of a vector

### Description

`vec_repeat()` has been replaced with `vec_rep()` and `vec_rep_each()` and is soft-deprecated as of vctrs 0.3.0.

### Usage

    vec_repeat(x, each = 1L, times = 1L)

### Arguments

`x` | A vector.
`each` | Number of times to repeat each element of `x`.
`times` | Number of times to repeat the whole vector of `x`.

### Value

A vector the same type as `x` with size `vec_size(x) * times * each`.

[Package vctrs version 0.3.2 Index]