conv_pan_delgastric: Parse a column for type of delayed gastric emptying treatment

View source: R/conv_pan.R

conv_pan_delgastricR Documentation

Parse a column for type of delayed gastric emptying treatment

Description

Parse a column for type of delayed gastric emptying treatment

Usage

conv_pan_delgastric(vec)

Arguments

vec

a character vector of values to convert

Details

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

Value

a factor vector

Examples

delgastric <- c("No", "Yes-no oral intake by POD 14",
"Yes-tube to external drainage/NG tube present/reinserted")

nsqipr:::conv_pan_delgastric(delgastric)


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