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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks dude! this took me a while to solve.