asNumMatrix function

Convert string-valued data frame or matrix into a numeric matrix