rep_col: rep_rcol

View source: R/rep_col.R

rep_colR Documentation

rep_rcol

Description

Helper function to repeat a matrix by column

Usage

rep_col(x, n)

Arguments

x

vector to repeat

n

number of repetions

Value

matrix with vector x repeated n-times by columns.

Examples

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

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