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

join_mspct

Join all spectra in a collection


Description

Join all the spectra contained in a homogenous collection, returning a data frame with spectral-data columns named according to the names of the spectra in the collection. By default a full join is done, filling the spectral data for missing wave lengths in individual spectra with NA.

Usage

join_mspct(x, type, ...)

## Default S3 method:
join_mspct(x, type = "full", ...)

## S3 method for class 'generic_mspct'
join_mspct(x, type = "full", col.name, ...)

## S3 method for class 'source_mspct'
join_mspct(x, type = "full", unit.out = "energy", ...)

## S3 method for class 'response_mspct'
join_mspct(x, type = "full", unit.out = "energy", ...)

## S3 method for class 'filter_mspct'
join_mspct(x, type = "full", qty.out = "transmittance", ...)

## S3 method for class 'reflector_mspct'
join_mspct(x, type = "full", ...)

## S3 method for class 'object_mspct'
join_mspct(x, type = "full", qty.out, ...)

Arguments

x

A generic_mspct object, or an object of a class derived from generic_mspct.

type

character Type of join: "left", "right", "inner" or "full" (default). See details for more information.

...

ignored (possibly used by derived methods).

col.name

character, name of the column in the spectra to be preserved, in addition to "w.length".

unit.out

character Allowed values "energy", and "photon", or its alias "quantum".

qty.out

character Allowed values "transmittance", and "absorbance".

Value

An object of class dataframe, with the spectra joined by wave length, with rows in addition sorted by wave length (variable w.length).

Methods (by class)

  • default:

  • generic_mspct:

  • source_mspct:

  • response_mspct:

  • filter_mspct:

  • reflector_mspct:

  • object_mspct:

Note

Currently only generic_spct, source_mspct, response_mspct, filter_mspct, reflector_mspct and object_mspct classes have this method implemented.


photobiology

Photobiological Calculations

v0.10.10
GPL (>= 2)
Authors
Pedro J. Aphalo [aut, cre] (<https://orcid.org/0000-0003-3385-972X>), Titta K. Kotilainen [ctb] (<https://orcid.org/0000-0002-2822-9734>), Glenn Davis [ctb], Agnese Fazio [ctb]
Initial release
2022-03-24

We don't support your browser anymore

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