R: Simple file-based hash table

dbInit {filehash} | R Documentation

## Simple file-based hash table

### Description

Interface for creating and initializing a simple file-based hash table

### Usage

    dbCreate(db, ...)
    dbInit(db, ...)

    ## S4 method for signature 'ANY'
    dbCreate(db, type = NULL, ...)
    ## S4 method for signature 'ANY'
    dbInit(db, type = NULL, ...)

### Arguments

`db` | name of database or a database object
`type` | type of database format. If missing, the default type will be used
`...` | other arguments passed to methods

### Details

`dbCreate` creates the necessary files or directory for the database. If those files already exist nothing is done.

`dbInit` takes a database name and returns an object inheriting from class `"filehash"`.

The `type` argument specifies the format in which the database should be stored on the disk. If not specified, the default type will be used (as specified by `filehashOption`).

### Value

`dbCreate` returns `TRUE` upon success and `FALSE` in the event of an error. `dbInit` returns an object inheriting from class `"filehash"`

### Note

The function `dbInitialize` has been deprecated. Use `dbInit` instead.

### Author(s)

Roger D. Peng

### See Also

See `filehash-class` more information and examples and `filehashOption` for setting the default database type.

[Package filehash version 2.4-1 Index]