rep_row {cities} | R 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)
[Package cities version 0.1.3 Index]