read_sqlite | R Documentation |
Access a SQLite file and pass a standard query. This function deals with all the DBI work and will open/close the connection automatically. If you need to perform multiple operations it is advised to work with DBI directly.
read_sqlite(db_name, query, extended_types = TRUE, ...)
db_name |
Database name (full or relative path must be part of the name). |
query |
Character vector containing the SQL query. |
extended_types |
RSQLite parameter for additional data types such as dates (default: |
... |
Additional parameters to be passed to |
write2sqlite
## Not run:
# Create a new DB and add first table in one swoop
write2sqlite('mydb.sqlite', mtcars, 'firsttable')
read_sqlite('mydb.sqlite', "SELECT * FROM firsttable")
read_sqlite('mydb.sqlite', "SELECT gear, count(*) AS N FROM firsttable GROUP BY gear")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.