powered by
Transforms matrix to dgTMatrix
as_sparse(x)
Sparse matrix of class dgTMatrix
Matrix or vector. If this is a vector, it is formatted into a single-column matrix.