-
Notifications
You must be signed in to change notification settings - Fork 5
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
Bug 18677 - Documentation of base::gamma & base::is.numeric could be Improved #79
Comments
I can take a crack at this with some help |
@ajinkya-k that's great, a patch would be welcome. I've invited you to this repo so I can assign you to the issue. Please have a go at editing the documentation files as described above. If you want feedback/help you can come to the office hours (the next ones are tomorrow!) or post on the R Contributors Slack - use the #core-documentation if it is a general question about contributing to documentation or the #work-out-loud channel to discuss this particular case. |
Thanks! |
Just a note: the Gamma function (as opposed to the distributed) documentation is in |
EDIT: Sorry I was wrong about the x < -10 case |
Just want to be sure we're not missing the |
i think you are right. I dont know why but I got a few NaNs for numbers less than 10 and i thought it didnt work. I restarted R and it seems to work okay now . Maybe I supplied numbers too close to integers |
@hturner I have a patch ready. I sent an email to get access to BugZilla. |
This issue is good for someone with a mathematical/statistical background, who is comfortable with basic LaTex-style math markup.
In Bug 18677, Jorgen Harmse (JH) proposes improvements to the documentation files. This issue will iterate on these suggestions and create a patch file for the proposed changes.
Changes to ?gamma
lgamma
in the formula fordigamma
(wherelgamma
computes the natural logarithm of the absolute value of the gamma function). I think this change can be skipped - the definition withChanges to ?is.numeric
The issue here is some surprise that
is.numeric
returns FALSE for complex numbers. This is as documented, e.g.I suggest extending the part
to include
"complex"
.How to make the changes
I suggest editing the help files (src/library/stats/man/GammaDist.Rd and src/library/base/man/numeric.Rd in one of two ways:
In both cases:
tools::checkRd()
The text was updated successfully, but these errors were encountered: