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

print

Print a spectral object


Description

Print method for objects of spectral classes.

Usage

## S3 method for class 'generic_spct'
print(x, ..., n = NULL, width = NULL)

## S3 method for class 'generic_mspct'
print(x, ..., n = NULL, width = NULL, n.members = 10)

Arguments

x

An object of one of the summary classes for spectra

...

not used in current version

n

Number of rows to show. If NULL, the default, will print all rows if less than option dplyr.print_max. Otherwise, will print dplyr.print_min

width

Width of text output to generate. This defaults to NULL, which means use getOption("width") and only display the columns that fit on one screen. You can also set option(dplyr.width = Inf) to override this default and always print all columns.

n.members

numeric Number of members of the collection to print.

Value

Returns x invisibly.

Methods (by class)

  • generic_mspct:

Note

This is simply a wrapper on the print method for tibbles, with additional information in the header. Curently, width applies only to the table of data.

Examples

print(sun.spct)
print(sun.spct, n = 5)

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.