print: Convert colorSpec object to readable text

printR Documentation

Convert colorSpec object to readable text

Description

display a colorSpec object as readable text. Output goes to stdout().

Usage

## S3 method for class 'colorSpec'
print( x, ...)

## S3 method for class 'colorSpec'
summary( object, long=TRUE, ... )

Arguments

x

a colorSpec object

object

a colorSpec object

long

logical indicating whether to print metadata, calibrate, sequence, and emulate data

...

further arguments ignored

Details

If long=FALSE, summary() prints a summary of the wavelength vector, and names of all spectra. For each spectrum it prints the range of values, LambdaMax, and extradata if any. If long=TRUE it also prints data listed above (if any).
The function print() simply calls summary() with long=FALSE.

Value

Both functions return (invisibly) the character vector that was just printed to stdout().

See Also

extradata, print, summary, stdout

Examples

print( xyz1931.1nm )

xyz1931.1nm     # same thing, just calls print()

colorSpec documentation built on May 29, 2024, 6 a.m.