Skip to contents

broadcast the vector into length n

Usage

broadcast_vector(x, n)

Arguments

x

vector

n

target length

Value

vector

Examples

broadcast_vector(1:3, 5)
#> [1] 1 2 3 1 2