Description Usage Arguments Examples
has_missing
and has_NA
tests if there are
missing values (NA
)
has_infinite
and
has_Inf
tests if there are infinite values
(Inf, -Inf
)
has_not_a_number
and
has_NaN
tests if there are 'Not a Number'
(NaN
)
has_nas
tests if there are any of
the previous ones
1 | has_missing(x)
|
x |
an R object |
1 2 3 4 5 6 7 8 9 | has_missing(1:5) # FALSE
has_missing(c(1, 2, 3, 4, NA)) # TRUE
has_infinite(c(1, 2, Inf, 1/0))
has_infinite(c(-Inf, "infinite"))
has_not_a_number(c(1, 2, 3)) # FALSE
has_not_a_number(c(1, 0/0, 3)) # TRUE
has_not_a_number(c(NaN, pi, log(1))) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.