Skip to contents

Quick check for NA presence in PhysioExperiment data.

Usage

hasNA(x, assay_name = NULL)

Arguments

x

A PhysioExperiment object.

assay_name

Optional specific assay to check.

Value

Logical indicating presence of NA values.

References

Oostenveld R, Fries P, Maris E, Schoffelen JM (2011). "FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data." Computational Intelligence and Neuroscience, 2011, 156869.

See also

checkNA for detailed NA statistics, naSummary for per-assay NA summary, replaceNA for handling NA values

Examples

pe <- PhysioExperiment(
  assays = list(raw = matrix(1:4, nrow = 2)),
  samplingRate = 100
)
hasNA(pe)
#> [1] FALSE