check_comaneurograft | R Documentation |
Remove coma, neuro deficit, and graft columns after 2010
check_comaneurograft(df)
df |
a data.table from which to remove the coma, neuro deficit, and graft outcome columns |
According to NSQIP, Graft failure, Coma, and Peripheral Nerve Injury should not be considered accurate for any PUF after 2010 (see the NSQIP website).
a data.table
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.