conv_col_leak_treatment: Parse a column for type of anastomotic leak intervention

View source: R/conv_col.R

conv_col_leak_treatmentR Documentation

Parse a column for type of anastomotic leak intervention

Description

Parse a column for type of anastomotic leak intervention

Usage

conv_col_leak_treatment(vec)

Arguments

vec

a character vector of values to convert

Details

NSQIP encodes the col_anastomotic column as having one of multiple interventions. This function extracts those values from character vectors and factors them.

Value

a factor 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)

nsqipr:::conv_col_leak_treatment(x)


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