insulin | R Documentation |
Parse a column for insulin usage
insulin(vec)
vec |
a character vector of values to convert |
NSQIP encodes the diabetes
column as either "no", "non-insulin", "oral", or "insulin".
This function checks that the value is both not "no" and also equal to "insulin". Returns
FALSE if either "oral" or "non-insulin". Returns NA if diabetes
is either "no" or NA.
a logical vector
nsqipr:::insulin(c("no","non-insulin","oral","insulin",NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.