get_factory_cals {gasanalyzer}R Documentation

Returns a matrix with factory calibration information for given instrument serial numbers and calibration dates.

Description

The factory calibration of the 6800 can be used to calculate concentrations from raw values. If calibration information is available in the package environment it can be retrieved by this method.

Usage

get_factory_cals(sn = NULL, datetime = NULL)

Arguments

sn

a character vector with an instrument serial number. If named, the names are kept in the output.

datetime

a POSIXct time vector indicating the latest possible time for the calibration data that is to be returned. If no calibration before datetime is found, the oldest available calibration is returned.

Details

The datetime option can be used to make sure that newer calibration files are not used in combination with older datafiles.

Value

A character matrix with factory calibration data. If no datetime is provided, the newest calibration is returned.

Examples

exampledir <- system.file("extdata//", package = "gasanalyzer")

# import factory cals for example data:
import_factory_cals(exampledir)

# show calibration data for a specific instrument serial numbers, closest to
# the current time:
get_factory_cals(sn = "68H-422400", datetime=Sys.time())

[Package gasanalyzer version 0.4.0 Index]