Convert data frame into a numeric matrix, filtering out non-numeric columns and warning the user (by displaying a message passed in as an argument) when such filtering occurs.
1 | df2NumericMatrix(x, filtering_message, convertVectorToDataFrame = FALSE)
|
x |
data frame to coerce to a numeric matrix |
filtering_message |
a message telling the end user that the input data frame will have its non-numeric columns removed |
convertVectorToDataFrame |
a boolean specifying whether x should be converted to a df if it's provided as a vector. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.