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).


crochet

CRAN_Status_Badge Number of direct and total dependencies Rdoc Travis-CI Build Status AppVeyor Build Status Coverage status

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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("crochet")

2.3.0 by Alexander Grueneberg, 6 years ago


https://github.com/agrueneberg/crochet


Report a bug at https://github.com/agrueneberg/crochet/issues


Browse source code at https://github.com/cran/crochet


Authors: Alexander Grueneberg [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports methods

Suggests tinytest, knitr, rmarkdown


Imported by BEDMatrix, BGData, LinkedMatrix.


See at CRAN