countMissing: Summary function for missing values

View source: R/countMissing.R

countMissingR Documentation

Summary function for missing values

Description

A summaryFunction, intended to be called from summarize (and makeDataReport), which counts the number of missing (NA) values in a variable.

Usage

countMissing(v, ...)

Arguments

v

A variable (vector).

...

Not in use.

Value

A summaryResult object with the following entries: $feature ("No. missing obs."), $result (the number and percentage missing observations) and $value (the number of missing observations).

See Also

summarize, allSummaryFunctions, summaryFunction, summaryResult

Examples

countMissing(c(1:100, rep(NA, 10)))


dataReporter documentation built on April 14, 2025, 1:09 a.m.