Fuzzy conversions
These are substitutes for as.matrix()
and as.data.frame()
that leave
a sparse matrix as-is.
maybe_matrix(x) maybe_data_frame(x)
x |
A data frame, matrix, or sparse matrix. |
A data frame, matrix, or sparse matrix.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.