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

Translate coalesce() to a vectorized expression when tidyverse = FALSE #17

Closed
ianmcook opened this issue Sep 10, 2019 · 0 comments
Closed

Translate coalesce() to a vectorized expression when tidyverse = FALSE #17

ianmcook opened this issue Sep 10, 2019 · 0 comments

Comments

@ianmcook
Copy link
Owner

@ianmcook ianmcook commented Sep 10, 2019

When tidyverse = FALSE, coalesce() expressions are translated to if() {} else if {} else {} statements, which are not vectorized in R. Switch to using nested ifelse() calls which are vectorized.

@ianmcook ianmcook closed this in 7a774f0 Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.