Learn R Programming

cdb (version 0.0.1)

cdb-package: Reading and Writing Constant DataBases

Description

A constant database is a data structure created by Daniel J. Bernstein in his cdb package. Its format consists on a sequence of (key,value)-pairs. This R package emulates the basic cdb utilities: read (cdbget) and write (cdbdump).

Arguments

Details

Package:
cdb
Type:
Package
Version:
0.0.1
Date:
2013-04-14
License:
GPL3
Function read.cdb reads a cdb file and returns a data frame with all the keys and the values of the constant database.

Function write.cdb exports a data frame with two columns to a text file, using the record format proposed by D. J. Bernstein.

References

Daniel J. Bernstein cdb http://cr.yp.to/cdb.html Michael Tokarev (2012) TinyCDB - a Constant DataBase http://www.corpit.ru/mjt/tinycdb.html

Examples

Run this code
## Not run: read.cdb("example.cdb")
## Not run: write.cdb(x, filename="Base.txt", type="txt")

Run the code above in your browser using DataLab