Learn R Programming

ChemoSpecUtils (version 1.0.5)

.findNA: Find NA in a Spectra2D Object

Description

Internal function. This function identifies the extent of any NA in a ChemoSpec2D::Spectra2D() object. This information can be used for summaries and plots.

Usage

.findNA(spectra, retFreq = FALSE)

Value

A list with two elements giving the indices of NAs for rows and columns, unless retFreq = TRUE, in which case the frequencies are returned.

Arguments

spectra

An object of S3 class ChemoSpec2D::Spectra2D().

retFreq

Logical. Should the frequencies be returned?

Author

Bryan A. Hanson (DePauw University).