pileMatrix | R Documentation |
Given a matrix, returns a dataframe with three columns, where the first column is the row index of the original matrix, the second column is the column index of the original matrix, and the third column is the value of the original matrix element.
pileMatrix(mat, subset = "full")
mat |
numeric matrix |
subset |
character indicating which array elements to take. The possible choices are:
|
A dataframe with three columns: row index (row), col index (col) and matrix element value (value)
mat <- matrix(1:9, nrow = 3)
mat
pileMatrix(mat)
pileMatrix(mat, subset = "u")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.