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).
Check out the Example of a Custom Type that Implements 'extract' and 'replace'
vignette on the crochet page on CRAN.
Install the stable version from CRAN:
install.packages("crochet")
Alternatively, install the development version from GitHub:
# install.packages("remotes")
remotes::install_github("agrueneberg/crochet")
Further documentation can be found on RDocumentation.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.