Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add higher-level support for writing / reading sparse matrices #209

Merged
merged 5 commits into from Feb 15, 2021

Conversation

eddelbuettel
Copy link
Member

This PR adds two helper functions fromSparseMatrix() which, similar to fromDateFrame() takes and object and uri string to create a new array from a sparse matrix. The toSparseMatrix() function does the inverse. A small unit test has been added too.

It adds the Matrix package, which is of status 'Recommended' and hence present in essentially all R installations, to the list of Suggests:.

@eddelbuettel eddelbuettel merged commit b498493 into master Feb 15, 2021
@eddelbuettel eddelbuettel deleted the de/sparse_matrix branch February 15, 2021 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants