expand_matrix {SimTimeVar} | R Documentation |
An internal function not intended for the user. Given a matrix of single observations
for a cluster, repeats each cluster's entry in each .obs
times.
expand_matrix(.matrix, .obs)
.matrix |
The matrix of observations to be expanded. |
.obs |
The number of observations to generate per cluster. |
mat = matrix( seq(1:10), nrow=2, byrow=FALSE)
expand_matrix(mat, 4)