Test if a Column/Variable has NA's

Usage,
test_na(.data, col_n)

Arguments

.data

dataframe or tibble

col_n

string name of the column/variable within the dataframe.

Value

Outputs a message of whether a column has NA's.

Details

Sums up the total number of NA's and reports where a column has 1 or more NA's

Examples

if (FALSE) {
library(magrittr)
library(dplyr)
library(glue)
library(testthat)
test_na(mtcars,'cyl')
}