powered by
Round non-numeric columns of a matrix, specified by a vector of data given data types.
repairNonNumeric(x, types)
matrix to be rounded
data types of the respective columns, numeric columns are specified by "numeric".
"numeric"
# NOT RUN { x <- matrix(10*runif(12),4,3) types <- c("numeric","factor","factor") repairNonNumeric(x,types) # }
Run the code above in your browser using DataLab