This function writes a two column data frame to a text file using the cdb record format.
An object that can be coerced as a data frame with two columns.
The name of the cdb file to write.
A character string describing the type of file. Value
This function writes a data frame to a file using the text version of the cdb format. The data frame (or the object) must have only two columns: The first one contains the keys and the second column are the values.
The text version of the constant databse is a file with several lines with
the form of
+klen,vlen:key->value followed by a newline. klen and vlen are the number of bytes in key and in value,
respectively. The end of data is indicated by an extra newline.
A text file with all the keys and values.
This text file can be transformed into a native cdb format using external programs. You may use an external program (for instance, TinyCDB) to create a cdb version from the text file (see references for details). In future versions, a native creation of cdb files will be developed.
Emilio Torres Manzanera
D. J. Bernstein The cdbmake and cdbdump programs http://cr.yp.to/cdb/cdbmake.html
Michael Tokarev (2012) TinyCDB - a Constant DataBase http://www.corpit.ru/mjt/tinycdb.html
1 2 3 4 5 6 7
Loading required package: bitops
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.