NA.operations | R Documentation |
allNA
tests if all elements are NA, and includeNA
sets the
NA
s in a character vector or factor to an explicit label.
allNA(x)
includeNA(x, label, ...)
## S3 method for class 'factor'
includeNA(x, label = "(Missing)", first = FALSE, ...)
## Default S3 method:
includeNA(x, label = "(Missing)", ...)
x |
An object |
label |
A character string denoting the label to set |
... |
Other arguments (not in use at this time). |
first |
Logical; should the new label be the first level? |
Ethan Heinzen
is.na
, anyNA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.