photobiology 0.8.4 (new functionality and minor bug fixes)
Expand sun.spct and sun.daily.spct down to 280 nm with zeros.
Add methods for construction of collections of spectra from data frames with different spectra in side-by-side columns (‘untidy’ or wide data): split2source_mspct(), split2response_mscpt(), split2filter_mspct(), split2reflector_mspct(), and split2cps_mspsct().
Add function subset2mspct() for construction of collections of spectra from data frames with spectral data for different spectra in a single column (‘tidy’ or long data), and spectral objects containing several spectra, such as those returned by function rbindspct().
Add print() method for collections of spectra.
Fix minor bug in trim_spct() which was inserting ‘hinges’ on head and/or tail expansion even if use.hinges was set to FALSE.
Fix bug in rare borderline cases where NA was being returned instead of empty spectral objects (objects with zero rows) as is normal practice in R.
photobiologySun 0.3.4 (new data)
Add a collection of spectra giving a time series of a sunfleck under silver birch trees as object gap.mspct data.
NOTE: Sources, and Windows binaries only for R 3.2.x, are now available in the repository.
For several months the main repository for the packages has been located at https://www.r4photobiology.info/R but the old repository remained available. From today the old repository has closed. So, if you were still using it, you will need to switch to the new address. Apart for their URL the repositories have been identical until a couple of weeks ago when I stopped updating the contents of the old repository.
Functions sunrise_time(), noon_time(), sunset_time(), day_length(),night_length()andday_night()gain formal parameter‘unit.out’`,
but its default value preserves earlier behaviour.
New generic functions peaks() and valleys().
subset() methods for spectral objects gain a new parameter 'idx'. (This a workaround until a way of wrapping [ operator from data.table is found.) During subsetting, tags are removed from the returned spectrum.
Functions is.photon_based(), is.energy_based(), is.absorbance_based() and is.transmittance_based() have been renamed by replacing the dot with an underscore for consistency with other functions not test for object class.
Fixed bug in trim_waveband().
annotate_plot() now passes arguments 'angle', 'hjust' and 'vjust' to annotate_waveband() in the case of labels.
NOTE: Sources, and Windows binaries for R 3.1.x and R 3.2.x, are now available in the repository.
A handbook on how to do calculations used in photobiological research with R is under preparation. The handbook will describe the use of our suite of R packages and also of functions from base R and packages from CRAN. Authors are Andreas Albert, Titta Kotilainen and myself. Further details, and possibly an early draft for download will be soon available.