aki_UO {epocakir}R Documentation

AKI Staging based on Urine Output

Description

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

Usage

aki_UO(...)

## S3 method for class 'data.frame'
aki_UO(.data, UO, dttm, pt_id, ...)

## S3 method for class 'units'
aki_UO(UO, dttm, pt_id, ...)

## S3 method for class 'numeric'
aki_UO(UO, dttm, pt_id, ...)

Arguments

...

Further optional arguments

.data

(data.frame) A data.frame, optional

UO

Urine output column name, or vector of units or numeric if .data is not provided

dttm

DateTime column name, or vector of POSIXct if .data is not provided

pt_id

Patient ID column name, or vector of characters or factors if .data is not provided

Details

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

Value

(ordered factor) AKI stages

Examples

aki_UO(aki_pt_data, UO = "UO_", dttm = "dttm_", pt_id = "pt_id_")

aki_pt_data %>%
  dplyr::mutate(aki = aki_UO(UO = UO_, dttm = dttm_, pt_id = pt_id_))

[Package epocakir version 0.9.9 Index]