-
Notifications
You must be signed in to change notification settings - Fork 0
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
Case for replacement acting as ifelse()
?
#23
Comments
I had the same dilemma when deciding how to code :
I think your syntax would be confusing and complexity code that is nicely compact and understandable (easy to investigate from users if edge cases). Even with my function/formula syntax I think there were caveats that made me decide against it but I m not sure and don't remember which. We could reintroduce the function notation with your proposed behavior and play with it to see what goes wrong if you want |
If think one case against it was : what if I want to replace missing values by the average? |
I see. We probably better leave this for the future. But one related thing is - what is our strategy with multi-value assignments? Related issue #21 |
We might use the formula notation with .x for lhs and .y for subset but now it starts to be confusing again :) |
While adding examples for replacement operators, I badly wanted to do this:
Instead of a more elaborate
But on the other hand - this might be a bit confusing. @moodymudskipper what do you think?
The text was updated successfully, but these errors were encountered: