dbInit {filehash} | R Documentation |
Interface for a simple file-based hash table
dbCreate(dbName, type = c("DB", "RDS")) dbInitialize(dbName, type = c("DB", "RDS"))
dbName |
character, name of database |
type |
type of database format. If missing, the default type will be used. |
dbCreate
creates the necessary files or directory for the
database. If those files already exist nothing is done.
dbInitialize
takes a database name and returns an object
inheriting from class "filehash"
.
The type
argument specifies how the database should be stored
on the disk, either as a pair of files ("DB"
) or as a
made to automatically determine the typecollection of
files in a directory ("RDS"
). If not specified, the default
type will be used (as specified by filehashOption
).
dbCreate
returns TRUE
upon success and FALSE
in
the event of an error.
Roger D. Peng
See filehash-class
more information and examples and
filehashOption
for setting the default database type.