conv_hep_liverfail_type | R Documentation |
Parse a column for type of liver failure
conv_hep_liverfail_type(vec)
vec |
a character vector of values to convert |
NSQIP encodes the hep_liverfail
column as either "meets criteria for PHLF" or
"PHFL (receiving clotting factors to maintain INR)". This function extracts those values from character vectors
and factors them.
a factor vector
x <- c("No-does not meet criteria for PHLF",
"Yes-meets criteria for PHLF",
"Yes-PHLF (receiving clotting factors to maintain INR)",
NA)
nsqipr:::conv_hep_liverfail_type(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.