test_na | R Documentation |
Test if a Column/Variable has NA's
test_na(.data, col_n)
.data |
dataframe or tibble |
col_n |
string name of the column/variable within the dataframe. |
Sums up the total number of NA's and reports where a column has 1 or more NA's
Outputs a message of whether a column has NA's.
## Not run:
library(magrittr)
library(dplyr)
library(glue)
library(testthat)
test_na(mtcars,'cyl')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.