R: A sample sqlite database

datasetsDb {RSQLite} | R Documentation

## A sample sqlite database

### Description

This database is bundled with the package, and contains all data frames in the datasets package.

### Usage

    datasetsDb()

### Examples

    library(DBI)
    db <- RSQLite::datasetsDb()
    dbListTables(db)

    dbReadTable(db, "CO2")
    dbGetQuery(db, "SELECT * FROM CO2 WHERE conc < 100")

    dbDisconnect(db)

[Package RSQLite version 2.2.8 Index]