R: Join all spectra in a collection

join_mspct {photobiology} | R Documentation

## 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.

[Package photobiology version 0.9.21 Index]