Disordered vectors in R: introducing the disordR package
Robin K. S. Hankin

TL;DR
The disordR package in R introduces a way to handle unordered map objects, preventing forbidden operations and enabling transparent manipulation of disordered vectors, with applications demonstrated in polynomial manipulation.
Contribution
It provides the first implementation of disordered vectors in R, facilitating safe handling of unordered map objects and integrating with existing packages.
Findings
DisordR enforces safe operations on unordered vectors.
The package simplifies manipulation of disordered data structures.
DisordR is a dependency for several R packages.
Abstract
Objects in the {\tt stl map} class of {\tt 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 {\tt disordR} package which facilitates the handling of {\tt 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\ldots but the maximum value has a well-defined result. The {\tt 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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsScientific Computing and Data Management · Data Analysis with R · Data Mining Algorithms and Applications
