Determines a Clavien-Dindo classification group from post-operative complication columns and binds an additional column to the supplied data frame.

add_dindo_group(df)

Arguments

df

a data frame containing any post-operative complication columns.

Details

Classifies Dindo-Clavien classification groups 1 and 2 as "minor" and groups 3 and above as "major".

Examples

supinfec <- c(TRUE, FALSE, FALSE) returnor <- c(FALSE, TRUE, FALSE) othseshock <- c(FALSE, FALSE, TRUE) df <- data.frame(supinfec, returnor, othseshock) df <- df %>% add_dindo_group()