Package ‘photobiology’ defines a system of classes for storing spectral data and accompanying metadata. For each of these classes specialised summary methods, maths operators and functions are provided. In addition, classes for storing collections of objects of the classes for individual spectra are defined as well as ‘apply’ functions. Extraction and replacement operators are also implemented. Functions for calculation of the position of the sun, times of sunrise and sunset, day length and night length are also provided.
The package supports storage and manipulation of data for radiation quantities and for optical properties of objects.
This package is the core of a suite of R packages for photobiological calculations described at the r4photobiology web site.