Skip to content

sqldf

Manipulate R Data Frames Using SQL

v0.4-12 · Jan 29, 2026 · GPL-2

Description

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.

Downloads

22.4K

Last 30 days

788th

65.4K

Last 90 days

285.1K

Last year

Trend: -2.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (30)

Dependency Network

Dependencies Reverse dependencies gsubfn proto RSQLite DBI chron Fgmutils metevalue smbinning BETS Clustering FIESTA FIESTAutils OnomasticDiversity RSDA RareComb RcextTools Rprofet WeibullFit dMrs elfgen +15 more reverse deps sqldf

Version History

new 0.4-12 Mar 10, 2026
updated 0.4-12 ← 0.4-11 diff Jan 29, 2026
updated 0.4-11 ← 0.4-10 diff Jun 27, 2017
updated 0.4-10 ← 0.4-9 diff Nov 6, 2014
updated 0.4-9 ← 0.4-7.1 diff Oct 26, 2014
updated 0.4-7.1 ← 0.4-7 diff Mar 14, 2014
updated 0.4-7 ← 0.4-6.4 diff Feb 21, 2014
updated 0.4-6.4 ← 0.4-6.1 diff Mar 27, 2012
updated 0.4-6.1 ← 0.4-6 diff Dec 18, 2011
updated 0.4-6 ← 0.4-5 diff Dec 10, 2011
updated 0.4-5 ← 0.4-4 diff Nov 21, 2011
updated 0.4-4 ← 0.4-3 diff Nov 14, 2011
updated 0.4-3 ← 0.4-2 diff Nov 5, 2011
updated 0.4-2 ← 0.4-1.2 diff Aug 8, 2011
updated 0.4-1.2 ← 0.4-1 diff Jul 22, 2011
updated 0.4-1 ← 0.4-0 diff Jun 28, 2011
updated 0.4-0 ← 0.3-5 diff Jun 14, 2011
updated 0.3-5 ← 0.3-4 diff Jun 4, 2010
updated 0.3-4 ← 0-3.3 diff Feb 13, 2010
updated 0-3.3 ← 0-3.2 diff Feb 6, 2010