View source: R/matrix_expand.R
matrix_expand | R Documentation |
Given a matrix m
and a vector v
of new row IDs, returns a new matrix
with length(v)
rows, and fills the empty rows with data from the nearest preceding row
containing data.
matrix_expand(the.matrix, new.rows)
the.matrix |
A numeric matrix. |
new.rows |
A character vector of row names,
of which a subset whould be the row names of |
A numeric matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.