Skip to content

Instantly share code, notes, and snippets.

@toyeiei
Created February 5, 2019 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toyeiei/38d03eda7e7da42da0be6845ac82a220 to your computer and use it in GitHub Desktop.
Save toyeiei/38d03eda7e7da42da0be6845ac82a220 to your computer and use it in GitHub Desktop.
# 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