Description Usage Arguments Details Value Examples
Convert an abundance dataframe to a named matrix.
1 |
df |
a data frame. |
col |
integer giving the column to be passed as row names. |
Use col = 0
if there are already row names (or use
as.matrix(df)
directly).
df2mat
returns a named matrix.
1 2 | df <- data.frame(Clade = letters[1:4], S1 = 1:4, S2 = 7:8)
df2mat(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.