explicit_na | R Documentation |
Substitute missing data with a string or factor level.
explicit_na(x, label = "<Missing>")
x |
( |
label |
( |
x
with any NA
values substituted by label
.
explicit_na(c(NA, "a", "b"))
is.na(explicit_na(c(NA, "a", "b")))
explicit_na(factor(c(NA, "a", "b")))
is.na(explicit_na(factor(c(NA, "a", "b"))))
explicit_na(sas_na(c("a", "")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.