check_comaneurograft: Remove coma, neuro deficit, and graft columns after 2010

check_comaneurograftR Documentation

Remove coma, neuro deficit, and graft columns after 2010

Description

Remove coma, neuro deficit, and graft columns after 2010

Usage

check_comaneurograft(df)

Arguments

df

a data.table from which to remove the coma, neuro deficit, and graft outcome columns

Details

According to NSQIP, Graft failure, Coma, and Peripheral Nerve Injury should not be considered accurate for any PUF after 2010 (see the NSQIP website).

Value

a data.table

Examples

x <- data.table::data.table(
cnscoma = c(TRUE, TRUE, FALSE),
ncnscoma = c(1,2,3),
dcnscoma = c(1,2,3),
neurodef = c(TRUE, TRUE, FALSE),
nneurodef = c(1,2,3),
dneurodef = c(1,2,3),
othgrafl = c(TRUE, TRUE, FALSE),
nothgrafl = c(1,2,3),
dothgrafl = c(1,2,3),
distraction = c("Test","test","test")
)

nsqipr:::get_pufyear(x, "acs_nsqip_puf10.txt")
nsqipr:::check_comaneurograft(x)
nsqipr:::get_pufyear(x, "acs_nsqip_puf12.txt")
nsqipr:::check_comaneurograft(x)


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