Search notes:

R package: hash

The package hash allows to work with associative arrays (aka dictionaries or hashes).
library(hash)

h <- hash();

h$one <- 'foo';
h[c('two', 'three')] <- c('bar', 'baz');

for (k in keys(h)) {
  print(paste0("h['", k, "'] = ", h[[ k ]]));
}
#
#  [1] "h['one'] = foo"
#  [1] "h['three'] = baz"
#  [1] "h['two'] = bar"
Github repository about-R, path: /packages/hash/basic.R

See also

R packages

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745507731, '18.119.167.222', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/packages/hash/index(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78