The janitor package is best known for the clean_names() function but also contains lots of other goodies. In particular, round_half_up() does "elementary school" rounding, and round_to_fraction() rounds to the nearest fraction (e.g. if you want 4.3 to round to 4.25 or any other specified fraction).
For making plot limits, I found it kinda bothersome that you can't ask signif to also do a ceiling/floor rather than a standard rounding on the last significant digit. I made my own: sigfloor
Thank you very much for all lessons. I have dat of monthly morbidities with number of patients for primary health care center and also the medication consumption (aggregated prescription daily) data for the same center and period, I am looking for way to test the correlation between medication usage and number of morbidities, then to check if the prescribers are abiding the defined protocols, dosage, duration of therapy and eventually the quality of health care of this center. This will provide statistical inference how to optimise the health care quality ( NGO center)
Its so funny, we have same question at same time. I'm working a similar job but i'm using spatial object and over() to count point in region. Over is a strange fonction but it works fine.
The janitor package is best known for the clean_names() function but also contains lots of other goodies. In particular, round_half_up() does "elementary school" rounding, and round_to_fraction() rounds to the nearest fraction (e.g. if you want 4.3 to round to 4.25 or any other specified fraction).
Thanks Mike - that's a great tip!
After the message, I recognize the good functions in janitor package
Amazing, First time to know the problem
Glad it helped!
Thank you, very useful! I did not know the other rounding methods.
Glad it was helpful! Thanks for watching
For making plot limits, I found it kinda bothersome that you can't ask signif to also do a ceiling/floor rather than a standard rounding on the last significant digit. I made my own:
sigfloor
Thanks for sharing and watching!
Thank you very much for all lessons.
I have dat of monthly morbidities with number of patients for primary health care center and also the medication consumption (aggregated prescription daily) data for the same center and period,
I am looking for way to test the correlation between medication usage and number of morbidities, then to check if the prescribers are abiding the defined protocols, dosage, duration of therapy and eventually the quality of health care of this center.
This will provide statistical inference how to optimise the health care quality ( NGO center)
Thanks for watching! Be sure to check out the cor.test function
Its so funny, we have same question at same time. I'm working a similar job but i'm using spatial object and over() to count point in region. Over is a strange fonction but it works fine.
Thanks! I'm by no means a spatial data analysis expert 😂