Skip to content

Add a pretty print function for plotftir data structures #27

@pbulsink

Description

@pbulsink

Add a pretty print function for PlotFTIR loaded data structures that shows:

  • spectral range
  • inferred resolution
  • absorbance or transmittance data
  • number of samples and sample ids

These data structures already have some attributes given (e.g. attr(spectra, 'intensity') will show either absorbance or transmittance. Assign a PlotFTIR-data to class (don't exclude other classes such as data.frame or tibble) and add a print.PlotFTIR-data to the stack to do this.

Document the pretty printing in english and french and include it in NEWS and the README file. Update vignettes as would make sense to include the new printing as well (e.g. "Let's look at the structure of the data we've loaded: print(plotfitr_data)").

Make sure that imported data from other packages also gets the same class addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions