Manipulate R Data Frames Using SQL
Overview
The sqldf() function is typically passed a single argument which is an SQL select statement where the table names are ordinary R data frame names. sqldf() transparently sets up a database, imports the data frames into that database, performs the SQL select or other statement and returns the result using a heuristic to determine which class to assign to each column of the returned data frame. The sqldf() or read.csv.sql() functions can also be used to read filtered files into R even if the original files are larger than R itself can handle. 'RSQLite', 'RH2', 'RMySQL' and 'RPostgreSQL' backends are supported.
- satisfy CRA checks. No code changes.
From inst/NEWS in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 3includes a package overview page
- Examples that run
- 50%1 run in a plain check · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 67%
Also includes 2 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 548
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/ggrothendieck/sqldf on 2026-10-18.
Dependencies
Installing sqldf adds 18 packages (10 with compiled code, 9.2 MB of source tarballs). Heaviest: RSQLite 4.2 MB, vctrs 1.0 MB, rlang 766 KB.
Show all 28 packagesHide all 28 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.4-12Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.4-112017-06-28 · diff ↗
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.4-102014-11-07 · diff ↗
- 0.4-92014-10-27 · diff ↗
Show 37 earlier eventsHide 37 earlier events
- RR 3.1.0 released · 2014-04-10
- 0.4-7.12014-03-15 · diff ↗
- 0.4-72014-02-22 · diff ↗
- RR 3.0.0 released · 2013-04-03
- RR 2.15.0 released · 2012-03-30
- 0.4-6.42012-03-28 · diff ↗
- 0.4-6.12011-12-19 · diff ↗
- 0.4-62011-12-11 · diff ↗
- 0.4-52011-11-22 · diff ↗
- 0.4-42011-11-15 · diff ↗
- 0.4-3
- RR 2.14.0 released · 2011-10-31
- 0.4-22011-08-09 · diff ↗
- 0.4-1.22011-07-23 · diff ↗
- 0.4-12011-06-29 · diff ↗
- 0.4-02011-06-15 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 0.3-52010-06-05 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 0.3-42010-02-14 · diff ↗
- 0-3.32010-02-07 · diff ↗
- 0-3.22010-02-01 · diff ↗
- 0-2.12009-12-28 · diff ↗
- 0-2.02009-12-24 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 0-1.72009-09-24 · diff ↗
- 0-1.52009-06-07 · diff ↗
- RR 2.9.0 released · 2009-04-17
- 0-1.42008-12-11 · diff ↗
- 0-1.22008-12-10 · diff ↗
- RR 2.8.0 released · 2008-10-20
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- 0-1.12007-07-29 · diff ↗
- 0-1.02007-07-21
- RR 2.5.0 released · 2007-04-24
Package metadata
- First published
- 2007-07-21
- Total releases
- 28 / 19 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.1.0
- Download size
- 60 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sqldf")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.