- 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_obvs
to 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 AKI
andNo Albuminuria
to stages ordered factors to prevent users have to handleNAs
mixed with ordered factors
- Fixed bug in
eGFR_internal()
where it was looking for!is.na(black)
to selecteGFR_adult_SCysC()
, whenblack
was 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_ACR
andcombn_changes
- Used
tibble::tibble()
instead ofdata.frame()
to prevent issue withstringsasfactors
difference 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_SCysC
methods
- Instead of individual functions, use methods for all low-level functions
- Renamed functions to snake_case, e.g.
eGFR.adult.SCr_SCysC
toeGFR_adult_SCr_SCysC
Improved handling of function arguments
- Changed from
forcats::fct_c
tovctrs::vec_c
for improvedNA
handling (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
pmin
instead ofmin
in eGFR calculation
dplyr compatible functions
- Proper handling of column names using dplyr programming (https://dplyr.tidyverse.org/articles/programming.html)
- Wrote
aki_bCr
calculation 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/)