Learn R Programming

filehash (version 2.2-2)

filehash-class: Class "filehash"

Description

These functions form the interface for a simple file-based key-value database (i.e. hash table).

Arguments

Objects from the Class

Objects can be created by calls of the form new("filehash", ...).

Examples

Run this code
dbCreate("myDB")  ## Create database 'myDB'
db <- dbInit("myDB")
dbInsert(db, "a", 1:10)
dbInsert(db, "b", rnorm(1000))
dbExists(db, "b")  ## 'TRUE'

dbList(db)  ## c("a", "b")
dbDelete(db, "a")
dbList(db) ## "b"

with(db, mean(b))

Run the code above in your browser using DataLab