Created
August 1, 2015 18:08
-
-
Save alejio/e0952720ee87d5acaaa3 to your computer and use it in GitHub Desktop.
R: Save data frame to SQLite db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("RSQLite") | |
# Set up database | |
drv <- dbDriver("SQLite") | |
tfile <- "Iowa.db" | |
con <- dbConnect(drv, dbname = "Iowa.db") | |
dbWriteTable(con, "data1", as.data.frame(data1)) | |
dbDisconnect(con) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment