photobiology (version 0.11.2)

print: Print spectral collection summary

Description

A function to nicely print objects of classes "summary...mspct".

Print method for objects of spectral classes.

Usage

# S3 method for summary_generic_mspct
print(x, width = NULL, ..., n = NULL)

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

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

Value

Returns x invisibly.

Arguments

x

An object of one of the summary classes for spectra

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.

...

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

n.members

numeric Number of members of the collection to print.

Methods (by class)

  • print(generic_mspct):

See Also

Examples

Run this code
print(summary(sun.spct))


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

Run the code above in your browser using DataCamp Workspace