The sqldf
package is an R package that allows users to run SQL statements within R. SQL is the popular programming language for manipulating data from relational databases, and the sqldf
package creates an opportunity to work directly with SQL statements on an R data frame. With this package, the user can do the following tasks easily:
Write alternate syntax for data frame manipulation, particularly for purposes of faster processing, since using
sqldf
(with SQLite as the underlying database) is often faster compared to performing the same manipulations in built-in R functionsRead portions of large files into R without reading the entire file
The user need not perform the following tasks once they use sqldf
because these are automatically done: