- Use correctly typed missing values for upcoming dplyr 1.1.0 (#41)
Update README and formatting
- Update readme and description
- Addressed comments from
goodpractice::gp()
CRAN re-submission
- Added reference link in the description field of the DESCRIPTION file
- Reduced the length of the title to less than 65 characters
- aki_staging.Rd: Added @return value explaining the functions results
- pipe.Rd: Removed code that re-exported %>% and used @importFrom instead
Initial CRAN submission
- Added vignette Introduction to epocakir with basic usage examples
- Updated README
- Added sample
clinical_obvsto demonstrate utility functions
- Exported
conversion_factors, similar to ordered factors likeaki_stages - Corrected mis-spelled words
Added sample data and better examples
- Added sample data based on test data
- Cleaned up code comments
- Added examples to methods
- Renamed
aki()toaki_staging()for more consistent method names
- Fixed bug when n < m for combn() in combn_changes()
- Changed methods from
method.default()tomethod.data.frame()to prevent infinite recursion on incorrectly specified function arguments
Improved high level API functions
- Wrote new combined
eGFR()function that automatically selects the appropriateeGFR_method()formula to use - Wrote new combined
aki()function that automatically calculates AKI based on all criteria and determines most severe stage - Added additional tests including warnings
- Added
No AKIandNo Albuminuriato stages ordered factors to prevent users have to handleNAsmixed with ordered factors
- Fixed bug in
eGFR_internal()where it was looking for!is.na(black)to selecteGFR_adult_SCysC(), whenblackwas not required
Initial full-featured release of epocakir methods
- Wrote
aki_SCr()function - Methods now include
aki_bCr,aki_SCr,aki_UO,anemia,eGFR_adult_SCr,eGFR_adult_SCysC,eGFR_adult_SCr_SCysC,eGFR_child_SCr,eGFR_child_SCr_BUN,eGFR_child_SCysC,GFR_staging,Albuminuria_staging_AER,Albuminuria_staging_ACRandcombn_changes
- Used
tibble::tibble()instead ofdata.frame()to prevent issue withstringsasfactorsdifference between R 3.x and R 4.x - Fixed sorting error in `aki_UO()
Re-wrote methods for consistency
- Removed duplicate
GFR_staging()code - Stricter
expect_identical()instead ofexpect_equal()assertions - Rewrote
anemia()to make method selection consistent with other functions
- Consistent parameter naming
Re-wrote all eGFR functions as S3 methods
- Wrote
eGFR_adult_SCr,eGFR_adult_SCysC,eGFR_adult_SCr_SCysC,eGFR_child_SCr,eGFR_child_SCr_BUN,eGFR_child_SCysCmethods
- Instead of individual functions, use methods for all low-level functions
- Renamed functions to snake_case, e.g.
eGFR.adult.SCr_SCysCtoeGFR_adult_SCr_SCysC
Improved handling of function arguments
- Changed from
forcats::fct_ctovctrs::vec_cfor improvedNAhandling (tidyverse/forcats#250) - Wrote
aki_bCr()method - Allow symbols to be passed to methods
- Added version numbers to dependencies
Added testing and additional utility functions to package
- Testing of edge-cases for
as_metric(NULL),as_metric(1)and unknown measurements - Wrote
as_metric() - Additional KDIGO guidelines (https://kdigo.org/guidelines/) added
- Added Albuminuria levels as an ordered factor
- Correctly use
pmininstead ofminin eGFR calculation
dplyr compatible functions
- Proper handling of column names using dplyr programming (https://dplyr.tidyverse.org/articles/programming.html)
- Wrote
aki_bCrcalculation as part ofaki()staging - Wrote
.dob2age()function to calculate a patient's age
Initial release
- Wrote
combn_changes() - Wrote
conversion_factors() - Wrote initial functions based on KDIGO guidelines (https://kdigo.org/guidelines/)