We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I have a question regarding fcase, I understand that I can use it like
fcase
x = c(1,2,3,4) fcase(x > 2, pmin(x, 3), default = 10) [1] 10 10 3 3
But most of the time what I really would like is a vector default
x = c(1,2,3,4) fcase(x > 2, pmin(x, 3), default = x) [1] 10 10 3 4
the above does not work. I am thinking about things like fcase(x > y, x*y, default = x/y)
fcase(x > y, x*y, default = x/y)
I guess I must be missing something here, maybe the intended use is not to do what I expect, can someone enlight me ? Many thanks
The text was updated successfully, but these errors were encountered:
Thanks for the issue, I believe it's the same as here:
#4258
Please re-open if I missed something
Sorry, something went wrong.
No branches or pull requests
Hello, I have a question regarding
fcase
, I understand that I can use it likeBut most of the time what I really would like is a vector default
the above does not work.
I am thinking about things like
fcase(x > y, x*y, default = x/y)
I guess I must be missing something here, maybe the intended use is not to do what I expect, can someone enlight me ?
Many thanks
The text was updated successfully, but these errors were encountered: