# This example shows how we could export a bunch of data.frames
# into tables on a remote database.
con <- dbConnect("SQLite", dbname = "sqlite.db")
export <- c("trantime.email", "trantime.print", "round.trip.time.email")
tabs <- make.db.names(con, export, unique = TRUE, allow.keywords = TRUE)
for(i in seq_along(export) )
dbWriteTable(con, name = tabs[i], get(export[i]))
Run the code above in your browser using DataCamp Workspace