has_no_missing_values {assertions} | R Documentation |
Check if a vector has no missing values
Description
This function returns a logical value indicating whether the input vector contains
no missing values (NA
).
Usage
has_no_missing_values(x)
Arguments
x |
A vector. |
Value
A logical value indicating whether the input vector contains no missing values.
Examples
if(interactive()){
has_no_missing_values(c(1, 2, 3)) # returns TRUE
has_no_missing_values(c(1, NA, 2)) # returns FALSE
}
[Package assertions version 0.1.0 Index]