photobiology 0.9.20.9002

The main changes from version 0.9.20, the most recent CRAN release, are:

  • Fix bugs in copy_attributes() function (some attributes were not copied).
  • Add copying of attributes to conversion functions cps2irrad(), cps2Tfr() and cps2Rfr().
  • Add merge_attributes() function and fix bugs in handling of metadata attributes in maths operators, affecting operations between two spectral objects.
  • Implement copy of attributes and automatic _adjustment_ of the "multiple.wl" attribute in the Extraction operator [] for spectral objects.
  • Improve handling of attributes in objects containing multiple spectra in tidy (longitudinal) form. Revise setMultipleWl() to guess number of spectra when multiple.wl argument is NULL.
  • Add setIdFactor() and getIdFactor(), and add parameter idfactor to setGenericSpct() and equivalent functions.
  • Handle gracefully attempts to apply smooth_spct() method to spectra containing NA values. (Warn and return as is.)
  • Add parameter na.rm to peaks(), valleys() and related methods and functions.
  • Add parameter na.rm to normalize() methods.
  • Option "photobiology.verbose" is initialized to the value of R’s option "verbose" at the time the package is attached.
  • If option photobiology.verbose == TRUE, the presence of NA values in spectral data triggers warnings.

Documentation web site at http://docs.r4photobiology.info/photobiology/ includes all help pages, with output from all examples, and vignettes in HTML format.
NOTE: The updated package can be installed from the CRAN-like repository at https://r.r4ohotobiology.info.

Please raise issues concerning bugs or enhancements to this package through Bitbucket https://bitbucket.org/aphalo/photobiology/issues

Share on

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.