conv_age | R Documentation |
Convert age to integer
conv_age(vec)
vec |
a character vector of values to convert |
NSQIP encodes anyone over the age of 90 as "90+". This converts all "90+" to 90. If given NA, will return NA.
an integer vector
nsqipr:::conv_age(c("18","45","90+",NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.