matrix.fromNames | R Documentation |
Create a matrix from 2 vectors defining the row- and column names of the matrix. Default fill value: NA.
matrix.fromNames(rowname_vec = 1:10, colname_vec = LETTERS[1:5], fill = NA)
rowname_vec |
A vector of names for rows, Default: |
colname_vec |
A vector of names for columns, Default: |
fill |
The value to fill the new vector, Default: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.