Note: Setting fill
will replace NAs and NaNs, along with elements
corresponding to missing rows, with the value of fill
.
1 | build_matrix(.data, rows, cols, elts, fill = NULL)
|
.data |
A data frame with columns |
rows |
Column that will become the rownames of the matrix. |
cols |
Column that will become the colnames of the matrix. |
elts |
Column that will become the matrix elements. |
fill |
Value to use for missing elements. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.