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, without reference to any particular application, and then shows how it can be used to manipulate multivariate polynomials. The {\tt disordR} package is a dependency of {\tt clifford}, {\tt freealg}, {\tt hyper2}, {\tt mvp}, {\tt spray}, {\tt stokes}, and {\tt weyl}. The {\tt disordR} package is available on CRAN at \url{https://CRAN.R-project.org/package=disordR}.
翻译:在 { t stl 映射 { t C} 类对象中, { t C} 类将值与每组密钥的每个密钥联系起来。 在 R 编程语言中, 调取此对象的值或密钥有问题, 因为值- 密钥配对没有在定义明确的顺序中存储。 此文档激励并讨论 { t dordR} 软件包所执行的“ 不稳定矢量” 概念, 这有助于处理\ t 映射} 对象。 地图的值和密钥以具体执行的方式存储, 因此应该禁止某些提取和替换操作。 例如, 如果值是真实的, 那么“ 第一” 值是特定的具体值\ lld, 但最大值有一个定义明确的结果。 kt dordR} 软件包使得不允许操作, 同时允许透明的 didom 用于允许操作。 给出了一个说明 R 会话, 其中软件包被抽象地使用, 而不参考任何特定应用程序, 然后显示它是如何用来操作多变的 聚名操作 。 。 t rt drt\\\\\\\\\\\\\\\ t\ t\\\\\\\\\\\\ t\\\ t\ t\ t\\\\\ t\ t\\\\\\\\\\\\ t\\\\ t\ t\ t\\\\\\\\\\ t\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\