ir_flat_clean {ir}R Documentation

Cleans objects of class ir_flat

Description

ir_flatten_clean takes an object of class ir_flat and either returns all non-empty spectra or all empty spectra as object of class ir_flat.

Usage

ir_flat_clean(x, return_empty = FALSE)

Arguments

x

An object of class ir_flat.

return_empty

A logical value indicating if the empty spectra should be returned (return_empty = TRUE) or the non-empty spectra (return_empty = FALSE).

Value

x where empty spectra are dropped (if return_empty = TRUE) or only empty spectra are returned (return_empty = FALSE).


[Package ir version 0.2.1 Index]