datasetsDb: A sample sqlite database

View source: R/datasetsDb.R

datasetsDbR 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)

RSQLite documentation built on May 29, 2024, 3:30 a.m.