
Last chance! 50% off unlimited learning
Sale ends in
data.frame
to a database table by row.names
.
Add2DB(myData, dbFile, tblName = "DNA", clause = "", verbose = TRUE)
dbFile
.
TRUE
if the data was added successfully, or FALSE
otherwise.
myData
will be added to the tblName
by its respective row.names
.
Seqs2DB
, SearchDB
, BrowseDB
# Create a sequence database
gen <- system.file("extdata", "Bacteria_175seqs.gen", package="DECIPHER")
dbConn <- dbConnect(SQLite(), ":memory:")
Seqs2DB(gen, "GenBank", dbConn, "Bacteria")
# Identify the sequence lengths
l <- IdLengths(dbConn)
# Add lengths to the database
Add2DB(l, dbConn)
# View the added lengths
BrowseDB(dbConn)
dbDisconnect(dbConn)
Run the code above in your browser using DataLab