Description Usage Arguments Value Examples
Replaces supplied numeric values with NA
1 | make_na(x, misvals)
|
x |
A vector |
misvals |
The values to be replaced with |
Returns x
with any indicies originally containing a value from misvals
replaced with NA
1 2 3 | table(nhis2018sm$CHLYR, useNA='always')
nhis2018$cholyr_new = make_na(x=nhis2018sm$CHLYR, misvals=c(7,8,9))
table(nhis2018$cholyr_new)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.