na_to_miss | R Documentation |
converts na values in vector to "Missing" or any other value. if the variable is a factor then the value is added as a factor level. if 'missing' already exists as a factor level then it simply adds more 'missing'.
na_to_miss(x, fill = "Missing", na_null = "na")
x |
vector containing the na values |
fill |
character or numeric value to replace na with. default is 'Missing'. |
na_null |
string determining what type of value to replace (i.e. na, null, nan). Options are "na", "null", and "nan", any other value will replace all of these. default is "na". |
na_to_miss_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.