Last active
April 19, 2024 01:42
-
-
Save jwolfson/72bc7d7fd8d339955b38 to your computer and use it in GitHub Desktop.
Reading an SQLite .db file into R
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
library(RSQLite) | |
filename <- "your_db_file.db" | |
sqlite.driver <- dbDriver("SQLite") | |
db <- dbConnect(sqlite.driver, | |
dbname = filename) | |
## Some operations | |
dbListTables(db) | |
mytable <- dbReadTable(db,"your_table_name") |
I tried this code and received this message "package ‘dbDriver’ is not available (for R version 3.5.3)". Any suggestions for how to resolve?
It worked perfectly fine with me. I have R version 3.6.0.
very helpful - thanks!
thanks dude! this took me a while to solve.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks !