Implementation of a hashmap data structure, i.e. an unordered collection of key-value pairs:
f: keys -> values.
Hashmaps only to store unique keys-value pairs. For a data structure
where multiple identical keys can be stores see multimap
.
Inserting and accessing is amortized in O(1).
hashmap
wraps a C++ unordered_map
using Rcpp modules.
Also see bimap
for mappings in both ways.
.map
C++
object representing a mapping
.key.class
the class of the keys
hashmap
for creating a new hashmap
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.