combn_changes {epocakir}R Documentation

Combinatorics changes

Description

Compares a value with all previous values

Usage

combn_changes(...)

## S3 method for class 'data.frame'
combn_changes(.data, dttm, val, pt_id, ...)

## S3 method for class 'POSIXct'
combn_changes(dttm, val, pt_id, ...)

Arguments

...

Further optional arguments

.data

(data.frame) A data.frame, optional

dttm

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

val

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

pt_id

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

Value

Combinatorics changes of the same type provided (numeric or units)

Examples

combn_changes(aki_pt_data, dttm = "dttm_", val = "SCr_", pt_id = "pt_id_")

aki_pt_data %>%
  combn_changes(dttm_, SCr_, pt_id_)

[Package epocakir version 0.9.9 Index]