test_na: Test if a Column/Variable has NA's

View source: R/test_na.R

test_naR Documentation

Test if a Column/Variable has NA's

Description

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.

Details

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

Value

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

Examples

## Not run: 
library(magrittr)
library(dplyr)
library(glue)
library(testthat)
test_na(mtcars,'cyl')

## End(Not run)


Fredo-XVII/RToolShed documentation built on March 17, 2024, 12:15 p.m.