label_shadow_matrix: Give NAs a more meaningful label

Description Usage Arguments Value See Also Examples

View source: R/label-miss.R

Description

Returns a binary factor of !NA and NA, where !NA indicates a datum that is not missing, and NA indicates missingness. This function is what powers the factor levels in as_shadow().

Usage

1

Arguments

x

a vector

Value

a vector of factors containing the labels "!NA" for Not missing and "NA" for missing.

See Also

as_shadow

Examples

1
2
3
4
## Not run: 
label_shadow_matrix(airquality$Ozone)

## End(Not run)

naniar documentation built on June 8, 2018, 9:04 a.m.