df2mat | R Documentation |
Convert a dataframe including numeric values to a matrix; non-numeric columns will be deleted.
df2mat(df)
df |
A dataframe including at least one column of numeric values |
A matrix made of the numeric columns from the dataframe. The column names associated will be conserved. The row names will be those of the column titled "ISO3", "ISO2", "country", 'countries', 'pays', 'region', 'regions', 'names', 'name', 'id' if it exists.
Other convert:
fac2num()
,
long()
,
mat2df()
Y <- df2mat(dfPolicyRate)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.