insertRow | R Documentation |
Insert Row into a Matrix
insertRow(m, r, v = NA, rName = "")
m |
(Required). a matrix. |
r |
(Required). numeric. row number where the new row should be inserted. |
v |
(optional). numeric. values for the new row. |
rName |
(optional). character. the name of the new row. |
a matrix with one more row than the provided matrix m.
Created by Hua Zou (5/19/2022 Shenzhen China)
https://github.com/cran/miscTools/
## Not run:
m <- matrix(1:4, 2)
insertRow(m, 2, 5:6)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.