AFMdata S4 image is written to an SQL database in the form of a data.frame; the ID will save it in a particular table in the database, if another AFM image with the same ID exists, it will be overwritten.

Open: mydb <- DBI::dbConnect(RSQLite::SQLite(), "myFile.sqlite")

Close: DBI::dbDisconnect(mydb)

AFM.writeDB(obj, mydb, ID, vacuum = TRUE, verbose = FALSE)

Arguments

obj

S4 AFM object from nanoAFMr package, if object is NULL, then ID will be removed from database

mydb

database connection from DBI package

ID

unique object file ID

vacuum

vacuums the database, if obj is NULL and something is deleted; this option saves space

verbose

if TRUE outputs verbose comments

See also

Author

Thomas Gredig