Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use && and || in translated expressions #2

Closed
ianmcook opened this issue Aug 31, 2019 · 1 comment
Closed

Do not use && and || in translated expressions #2

ianmcook opened this issue Aug 31, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@ianmcook
Copy link
Owner

The operators && and || are not vectorized in R so should not be used in expressions that will be applied in a vectorized fashion to data frames. Translate AND and OR to & and | instead. Consider adding a note and example to the README describing how these operators do not short circuit like SQL's AND and OR sometimes do.

@ianmcook
Copy link
Owner Author

Fixed in 35fba0f

@ianmcook ianmcook added the bug Something isn't working label Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant