as.matrixFromList | R Documentation |
Converts a list of same length vectors to a matrix. Unlike as.matrix.default, it unlists first and uses names from the first list element in the result.
as.matrixFromList(xlist, byrow = TRUE)
xlist |
a list of same length vectors |
byrow |
if TRUE, each list element becomes a row in the matrix else, each list element becomes a column in the matrix |
a matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.