Hyperbolic trigonometry functions
Describe the enhancement requested
In economics and health services research we often use hyperbolic trig functions--particularly the hyperbolic arc sine function--to transform skewed data with 0s. While it is possible (and not too difficult) to code up asinh manually (ln(x+sqrt(x^2+1))), it would be great if it could be added to the library of built-in functions.
Component(s)
R
Hi @andersen-hecon - thanks for opening this issue! Would you be interested in submitting a pull request?
Tbh not sure how to do that! (Very new to GitHub etc)
I took a stab at this in #44630 . (If I understand how the R build works, this will magically add the R functions as well, but correct me if I'm wrong @thisisnic )
Thanks for making that PR @khwilson, that's awesome!! I won't review it myself as I'm not super familiar with the C++ side but I've pinged someone who can.
I'm afraid it won't magically add the R functions as well, but here's a guide on how to do that from an older version of the docs: https://arrow.apache.org/docs/dev/r/articles/developers/bindings.html
Ah disappointing! Not quite like the Python version then.
Thank you for the PR @khwilson. I added my review. It's very comprehensive and well done (with the right _checked variations and all). I created a separate issue so that we can focus on merging this PR as soon as possible and another one can be opened dedicated to adding the R bindings (pointing to this issue).
@khwilson's PR is now merged. R bindings still pending so this issue remains open.
Thanks for pushing this through @felipecrv!
Implemented in https://github.com/apache/arrow/pull/44971