-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adding new functions #54
Comments
A lot of really great work here and a lot that can be used in
No real comment required - good to go:
Query or small change required - hold:
These are all related to the
Not needed/right for this package - stop:
Wider impact on phsmethods and future thinking
I'll let @davidc92 come in on this now and we can make a plan of action! 🥳 |
Before I wade in, Nick, can you please open a separate issue for each function with a short description of what it is intended to do? It is not immediately clear from a lot of the names :) With separate issues we can manage their implementation properly. Let me know once they have all been opened and I will review them. D |
Hi Russell and David, thanks for the feedback, I've begun opening issues for each function separately. mylabels <- c("0 to 10", "11 to 19", "20 to 39", "40 to 59", "60 to 79", "80 and older")
age_to_band(1:100, age_breaks = c(0, 11, 20, 40, 60, 80), stringsAsFactors = TRUE, labels = mylabels, ordered = TRUE) Maybe not a critical improvement but happy to hear your thoughts! |
I think non-even age breaks would be a great addition. This is something I and others on my team do regularly. I think the challenge will be to implement it without changing the existing functionality and keeping the API simple... lots of tests needed! |
Very happy for |
I created an issue for allowing custom bin lengths for the |
Thanks @davidc92 and agree with @r6lm in that updating I have a method here age_band.R which I have tried to make user friendly by creating a list of common age groupings and using one of these as the default breaks argument. For example, the default breaks are set to
|
Is your feature request related to a problem? Please describe.
No problems!
Describe the solution you'd like
I have quite a few helper functions that I think might be useful to phsmethods, happy to discuss in more detail.
The text was updated successfully, but these errors were encountered: