writeObjectToDB: Store any Object inside a SQLite database

Description Usage Arguments Value Examples

Description

Serializes any class of object and stores them in a database table, with the objects name as the table name

Usage

1
2
writeObjectToDB(objectToSave, databaseToWriteTo, tableName = NULL,
  overwriteEntry = FALSE, compressionType = "bzip2")

Arguments

objectToSave

Any R object to be stored inside the database

databaseToWriteTo

The Path to the database that the object will be put into, must end in '.DB'

tableName

The name the object will be saved in. If left blank, will be the name of the object

overwriteEntry

Do you overwrite the entry in the database? Defaults to FALSE. Will throw an error if object already exists.

Value

None

Examples

1
2
3
4
5
## Not run: 
exampleVector<-c(1,2,3,4)
writeObjectToDB(exampleVector,"Example.DB")

## End(Not run)

thebioengineer/AxioSerializer documentation built on May 12, 2019, 8:45 a.m.