Created
February 5, 2019 07:04
-
-
Save toyeiei/38d03eda7e7da42da0be6845ac82a220 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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