Learn R Programming

baizer (version 0.8.0)

broadcast_vector: broadcast the vector into length n

Description

broadcast the vector into length n

Usage

broadcast_vector(x, n)

Value

vector

Arguments

x

vector

n

target length

Examples

Run this code
broadcast_vector(1:3, 5)

Run the code above in your browser using DataLab