na_check: Missing values check

Description Usage Arguments Value Author(s)

View source: R/summary_functions.R

Description

This function is designed to be used internally.

Usage

1
2
na_check(x, na_type = c(), na_consecutive_n = NULL, na_max_n = NULL,
  na_min_n = NULL, na_max_prop = NULL, na_FUN = NULL, ...)

Arguments

x

A numeric vector.

na_type

A vector of strings that defines the type of missing value criteria e.g "n", "con", "prop", "FUN".

na_consecutive_n

An integer that defines the maximum number of allowed consecutive missing values.

na_max_n

An integer that defines the maximum number of allowed missing values.

na_min_n

An integer that defines the minimum number of allowed missing values.

na_max_prop

An integer that defines the maximum allowed proportion of missing values.

na_FUN

A function that returns a boolean.

...

Additional arguments that could be passed internally.

Value

A boolean check.

Author(s)

Shadrack Kibet


shadrackkibet/summaryR documentation built on Jan. 2, 2020, 12:54 a.m.