Last active
February 5, 2019 09:08
-
-
Save toyeiei/9c8c5807718982b0a2920c94475c4091 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
# filter only cars with hp <= 100 | |
sqldf("SELECT * FROM mtcars WHERE hp <= 100;") | |
# filter more than one conditions with AND | |
sqldf("SELECT * FROM mtcars WHERE hp <= 100 AND am = 1;") | |
# filter more than one condition with OR | |
sqldf("SELECT * FROM mtcars WHERE hp <= 100 OR gear = 4;") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment