Skip to content

Instantly share code, notes, and snippets.

@toyeiei
Created Feb 5, 2019
Embed
What would you like to do?
# install sqldf
install.packages("sqldf")
library(sqldf)
# select all columns from table mtcars
sqldf("SELECT * FROM mtcars;")
# select these 3 columns from table mtcars
sqldf("SELECT mpg, wt, hp FROM mtcars;")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment