rep_row: rep_row

View source: R/rep_row.R

rep_rowR Documentation

rep_row

Description

Helper function to repeat a matrix by row

Usage

rep_row(x, n)

Arguments

x

vector to repeat

n

number of repetions

Value

Matrix with vector x repeated n-times by rows.

Examples

set.seed(1)
rep_row(rnorm(5), 5)

cities documentation built on Aug. 8, 2023, 9:06 a.m.