crochet v2.3.0
Monthly downloads
Implementation Helper for '[' and '[<-' of Custom Matrix-Like Types
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).
Readme
crochet
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.
Installation
Install the stable version from CRAN:
install.packages("crochet")
Alternatively, install the development version from GitHub:
# install.packages("remotes")
remotes::install_github("agrueneberg/crochet")
Documentation
Further documentation can be found on RDocumentation.
Contributing
- Issue Tracker: https://github.com/agrueneberg/crochet/issues
- Source Code: https://github.com/agrueneberg/crochet
Functions in crochet
| Name | Description | |
| replace | Create an Implementation of [<- For Custom Matrix-Like Types | |
| ktoij | Convert One-Dimensional Index k to Two-Dimensional Indices i and j | |
| convertIndex | Convert Non-Numeric Index Types to Positive Integers | |
| ijtok | Convert Two-Dimensional Indices i and j to One-Dimensional Index k | |
| crochet-package | crochet | |
| extract | Create an Implementation of [ For Custom Matrix-Like Types | |
| No Results! | ||
Vignettes of crochet
| Name | ||
| StringMatrix.Rmd | ||
| No Results! | ||
Last month downloads
Details
| License | MIT + file LICENSE |
| URL | https://github.com/agrueneberg/crochet |
| BugReports | https://github.com/agrueneberg/crochet/issues |
| VignetteBuilder | knitr |
| NeedsCompilation | no |
| Packaged | 2020-05-19 21:15:31 UTC; agrueneberg |
| Repository | CRAN |
| Date/Publication | 2020-05-20 22:40:02 UTC |
| suggests | knitr , rmarkdown , tinytest |
| imports | methods |
| depends | R (>= 3.0.0) |
| Contributors |
Include our badge in your README
[](http://www.rdocumentation.org/packages/crochet)