powered by
These are substitutes for as.matrix() and as.data.frame() that leave a sparse matrix as-is.
as.matrix()
as.data.frame()
maybe_matrix(x)maybe_data_frame(x)
maybe_data_frame(x)
A data frame, matrix, or sparse matrix.