Site icon R-bloggers

Use SQL queries to manipulate data frames in R with sqldf package

[This article was first published on Getting Genetics Done, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I’ve covered a few topics in the past including the plyr package, which is kind of like “GROUP BY” for R, and the merge function for merging datasets. I only recently found the sqldf package for R, and it’s already one of the most useful packages I’ve ever installed. The main function in the package is sqldf(), which takes a quoted string as an argument. You can treat data frames as tables as if

To leave a comment for the author, please follow the link and comment on their blog: Getting Genetics Done.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.