aki_bCr {epocakir}R Documentation

AKI Staging based on Baseline Serum Creatinine

Description

Using KDIGO Clinical Practice Guideline for Acute Kidney Injury Volume 2 | Issue 1 | March 2012

Usage

aki_bCr(...)

## S3 method for class 'data.frame'
aki_bCr(.data, SCr, bCr, ...)

## S3 method for class 'units'
aki_bCr(SCr, bCr, ...)

## S3 method for class 'numeric'
aki_bCr(SCr, bCr, ...)

Arguments

...

Further optional arguments

.data

(data.frame) A data.frame, optional

SCr

Serum creatinine column name, or vector of units or numeric if .data is not provided

bCr

Baseline creatinine column name, or vector of units or numeric if .data is not provided

Details

See https://kdigo.org/guidelines/acute-kidney-injury/ for more details.

Value

(ordered factor) AKI stages

Examples

aki_bCr(aki_pt_data, SCr = "SCr_", bCr = "bCr_")

aki_pt_data %>%
  dplyr::mutate(aki = aki_bCr(SCr = SCr_, bCr = bCr_))

[Package epocakir version 0.9.9 Index]