Disordered vectors in R: introducing the disordR package

10/08/2022
by   Robin K. S. Hankin, et al.
0

Objects in the stl map class of C++ associate a value to each of a set of keys. Accessing values or keys of such an object is problematic in the R programming language because the value-key pairs are not stored in a well-defined order. This document motivates and discusses the concept of "disordered vector" as implemented by the disordR package which facilitates the handling of map objects. Values and keys of a map are stored in an implementation-specific way so certain extraction and replacement operations should be forbidden. For example, if values are real, then the "first" value is implementation specific…but the maximum value has a well-defined result. The disordR package makes forbidden operations impossible while allowing transparent R idiom for permitted operations. An illustrative R session is given in which the package is used abstractly, without reference to any particular application, and then shows how it can be used to manipulate multivariate polynomials. The disordR package is a dependency of clifford, freealg, hyper2, mvp, spray, stokes, and weyl. The disordR package is available on CRAN at <https://CRAN.R-project.org/package=disordR>.

READ FULL TEXT
research
10/28/2022

Fast multivariate polynomials in R: the mvp package

In this short article I introduce the mvp package, which provides some f...
research
10/19/2022

Sparse arrays in R: the spray package

In this short article I introduce the spray package, which provides some...
research
07/25/2023

The free Abelian group in R: the frab package

In this short article I introduce the frab package which provides an alt...
research
02/21/2023

Jordan algebra in R

In this short article I introduce the "jordan" package which provides fu...
research
05/08/2020

Monitoring data in R with the lumberjack package

Monitoring data while it is processed and transformed can yield detailed...
research
06/28/2018

fc: A Package for Generalized Function Composition Using Standard Evaluation

In this article, we present a new R package fc that provides a streamlin...
research
09/12/2022

SmartKex: Machine Learning Assisted SSH Keys Extraction From The Heap Dump

Digital forensics is the process of extracting, preserving, and document...

Please sign up or login with your details

Forgot password? Click here to reset