https://github.com/agrueneberg/crochet
An implementation helper for [ and [<- for custom matrix-like types
https://github.com/agrueneberg/crochet
cran r r-pkg
Last synced: about 1 year ago
JSON representation
An implementation helper for [ and [<- for custom matrix-like types
- Host: GitHub
- URL: https://github.com/agrueneberg/crochet
- Owner: agrueneberg
- License: other
- Created: 2017-02-01T21:18:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T10:52:35.000Z (about 6 years ago)
- Last Synced: 2025-04-21T02:41:18.601Z (over 1 year ago)
- Topics: cran, r, r-pkg
- Language: R
- Homepage:
- Size: 140 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crochet
[](https://CRAN.R-project.org/package=crochet)
[](https://tinyverse.netlify.com)
[](http://www.rdocumentation.org/packages/crochet)
[](https://travis-ci.org/agrueneberg/crochet)
[](https://ci.appveyor.com/project/agrueneberg/crochet)
[](https://codecov.io/github/agrueneberg/crochet?branch=master)
crochet is an R package that provides functions to help implement the extraction / subsetting / indexing function `[` and replacement function `[<-` of custom matrix-like types (based on S3, S4, etc.), modeled as closely to the base `matrix` class as possible (with tests to prove it).
Example
-------
Check out the `Example of a Custom Type that Implements 'extract' and 'replace'` vignette [on the crochet page on CRAN](https://cran.r-project.org/package=crochet).
Installation
------------
Install the stable version from CRAN:
```R
install.packages("crochet")
```
Alternatively, install the development version from GitHub:
```R
# install.packages("remotes")
remotes::install_github("agrueneberg/crochet")
```
Documentation
-------------
Further documentation can be found on [RDocumentation](http://www.rdocumentation.org/packages/crochet).
Contributing
------------
- Issue Tracker: https://github.com/agrueneberg/crochet/issues
- Source Code: https://github.com/agrueneberg/crochet