Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read_nircal

Import BUCHI NIRCal files


Description

Maturing lifecycle

This function imports .nir files generated by BUCHI NIRCal software.

Usage

read_nircal(file, response = TRUE, spectra = TRUE,
            metadata = TRUE, progress = TRUE, verbose = TRUE)

Arguments

file

the name of the NIRCal (.nir) file which the data are to be read from. For URLs a temporary file is first downloaded and is then read.

response

a logical indicating if the data of the response variables must be returned (default is TRUE).

spectra

a logical indicating if the spectral data must be returned (default is TRUE).

metadata

a logical indicating if the metadada must be returned (default is TRUE).

progress

a logical indicating if a progress bar must be printed (default is TRUE).

verbose

a logical indicating if the number of spectra and response variables (an also the ID's of the spectra without gain and/or temperature information) must be printed (default is TRUE).

Details

The extension of the BUCHI NIRCal files is .nir. These files are used to store spectra generated by BUCHI N-500 and BUCHI NIRMaster FT-NIR sensors. See NIRCal website.

Value

a data.frame containing the metadata, response variables (if response = TRUE) and spectra (if spectra = TRUE, embedded in the data.frame as a matrix named ...$spc).

Author(s)


prospectr

Miscellaneous Functions for Processing and Sample Selection of Spectroscopic Data

v0.2.1
MIT + file LICENSE
Authors
Antoine Stevens [aut, cre] (<https://orcid.org/0000-0002-1588-7519>), Leonardo Ramirez-Lopez [aut, cre] (<https://orcid.org/0000-0002-5369-5120>), Guillaume Hans [ctb] (<https://orcid.org/0000-0002-6503-5760>)
Initial release
2020-10-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.