Package: r2r 0.1.2
r2r: R-Object to R-Object Hash Maps
Implementation of hash tables (hash sets and hash maps) in R, featuring arbitrary R objects as keys, arbitrary hash and key-comparison functions, and customizable behaviour upon queries of missing keys.
Authors:
r2r_0.1.2.tar.gz
r2r_0.1.2.zip(r-4.5)r2r_0.1.2.zip(r-4.4)r2r_0.1.2.zip(r-4.3)
r2r_0.1.2.tgz(r-4.4-any)r2r_0.1.2.tgz(r-4.3-any)
r2r_0.1.2.tar.gz(r-4.5-noble)r2r_0.1.2.tar.gz(r-4.4-noble)
r2r_0.1.2.tgz(r-4.4-emscripten)r2r_0.1.2.tgz(r-4.3-emscripten)
r2r.pdf |r2r.html✨
r2r/json (API)
NEWS
# Install 'r2r' in R: |
install.packages('r2r', repos = c('https://vgherard.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/vgherard/r2r/issues
Last updated 10 days agofrom:5301a16e0b (on v0.1.2). Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 09 2024 |
R-4.5-win | OK | Nov 09 2024 |
R-4.5-linux | OK | Nov 09 2024 |
R-4.4-win | OK | Nov 09 2024 |
R-4.4-mac | OK | Nov 09 2024 |
R-4.3-win | OK | Nov 09 2024 |
R-4.3-mac | OK | Nov 09 2024 |
Exports:%has_key%compare_fndefaultdefault_hash_fndefault<-deletehas_keyhash_fnhashmaphashsetinsertkeyson_missing_keyon_missing_key<-queryvalues
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Get key comparison function of an hash table | compare_fn compare_fn.r2r_hashtable |
Default 'hashmap' values | default default.r2r_hashmap default<- default<-.r2r_hashmap |
String hashes for arbitrary R objects | default_hash_fn |
Delete keys or key/value pairs from an hash table. | delete delete.r2r_hashmap delete.r2r_hashset |
Key existence in hash tables | %has_key% has_key has_key.r2r_hashmap has_key.r2r_hashset |
Get hash function of an hash table | hash_fn hash_fn.r2r_hashtable |
Hash maps and sets | hashmap hashset hashtable |
Methods for S3 classes 'hashmap' and 'hashset' | hashtable_methods |
Insert keys or key/value pairs into an hash table. | insert insert.r2r_hashmap insert.r2r_hashset |
List all keys from an hash table | keys keys.r2r_hashtable |
Size of hash tables | length.r2r_hashtable |
On missing key behaviour | on_missing_key on_missing_key.r2r_hashmap on_missing_key<- on_missing_key<-.r2r_hashmap |
Query keys from an hash table. | query query.r2r_hashmap query.r2r_hashset |
Subsetting 'hashset's and 'hashmap's | subsetting_hashtables [.r2r_hashmap [.r2r_hashset [<-.r2r_hashmap [<-.r2r_hashset [[.r2r_hashmap [[.r2r_hashset [[<-.r2r_hashmap [[<-.r2r_hashset |
List all values from an hash map | values values.r2r_hashmap |