R/matrix.R
cast_matrix.Rd
Cast a matrix to the desired type
cast_matrix(x, fn)
A matrix
A bare function such as as.character or as.integer
A matrix of the desired type