repairNonNumeric | R Documentation |
Round non-numeric columns of a matrix, specified by a vector of data given data types.
repairNonNumeric(x, types)
x |
matrix to be rounded |
types |
data types of the respective columns, numeric columns are specified by |
x <- matrix(10*runif(12),4,3) types <- c("numeric","factor","factor") repairNonNumeric(x,types)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.