read_multi: Read spectral data from multiple files

read_anyR Documentation

Read spectral data from multiple files

Description

Wrapper functions for reading files in batch.

Usage

read_any(file, ...)

read_zip(file, ...)

Arguments

file

file to be read from or written to.

...

further arguments passed to the submethods.

Details

read_any() provides a single function to quickly read in any of the supported formats, it assumes that the file extension will tell it how to process the spectra. read_zip() provides functionality for reading in spectral map files with ENVI file format or as individual files in a zip folder. If individual files, spectra are concatenated.

Value

All read_*() functions return OpenSpecy objects

Author(s)

Zacharias Steinmetz, Win Cowger

See Also

read_spec()

Examples


read_extdata("raman_hdpe.csv") |> read_any()
read_extdata("ftir_ldpe_soil.asp") |> read_any()
read_extdata("testdata_zipped.zip") |> read_zip()
read_extdata("CA_tiny_map.zip") |> read_zip()


OpenSpecy documentation built on Nov. 26, 2023, 1:09 a.m.