conv_col_anastomotic: Parse entries that indicate the presence of an anastomotic...

View source: R/conv_col.R

conv_col_anastomoticR Documentation

Parse entries that indicate the presence of an anastomotic leak

Description

Parse entries that indicate the presence of an anastomotic leak

Usage

conv_col_anastomotic(vec)

Arguments

vec

a character vector to parse

Details

returns TRUE if case-insensitive "yes" or "leak' is detected in the character vector.

Value

a logical vector

Examples

x <- c("No", "Yes-reoperation", "Yes-percutaneous intervention",
"Yes-no intervention required",
"No definitive diagnosis of leak/leak related abscess",
"Leak, treated w/ reoperation", "Leak, treated w/ interventional means",
"Leak, no treatment intervention documented",
"Leak, treated w/ non-interventional/non-operative means", NA)

cbind(x, nsqipr:::conv_col_anastomotic(x))


dylanrussellmd/nsqipr documentation built on Oct. 13, 2023, 11:01 a.m.