powered by
Compares a value with all previous values
combn_changes(...)# S3 method for data.frame combn_changes(.data, dttm, val, pt_id, ...)# S3 method for POSIXct combn_changes(dttm, val, pt_id, ...)
# S3 method for data.frame combn_changes(.data, dttm, val, pt_id, ...)
# S3 method for POSIXct combn_changes(dttm, val, pt_id, ...)
Combinatorics changes of the same type provided (numeric or units)
Further optional arguments
(data.frame) A data.frame, optional
DateTime column name, or vector of POSIXct if .data is not provided
.data
Variable column name, or vector of units or numeric if .data is not provided
Patient ID column name, or vector of characters or factors if .data is not provided
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