Learn R Programming

epocakir (version 1.0.0)

combn_changes: Combinatorics changes

Description

Compares a value with all previous values

Usage

combn_changes(...)

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

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

Value

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

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

Examples

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

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

Run the code above in your browser using DataLab