is.missing | R Documentation |
Find out which elements of a vector have missing values
is.missing(x, codelist = attr(x, "codelist"))
x |
vector for which the missing elements have to be detected. |
codelist |
a |
Unlike is.na
is.missing
will also return TRUE
for
elements of x
whose values are indicated in the code list to be
missing values. For that to work codelist
needs to be a valid
codelist
with a 'missing' column. This column needs to be
interpretable as a logical vector. When codelist
is missing or does
not contain a 'missing' column the result of is.missing
is the same as
is.na
.
Returns a logical vector of the same length as x
with TRUE
indicating corresponing values in x
that can be considered to be
missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.