Coerce bigKNN outputs to a sparse matrix
Usage
as_sparse_matrix(x, include_distance = TRUE)
Arguments
- x
A bigKNN result or graph object.
- include_distance
Logical flag controlling whether distances are kept
when coercing raw kNN or radius results.
Value
A Matrix::dgCMatrix.