Learn R Programming

colorSpec (version 1.5-0)

print: Convert colorSpec object to readable text

Description

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

Usage

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

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

Value

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

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.

See Also

extradata, print, summary, stdout

Examples

Run this code
print( xyz1931.1nm )

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

Run the code above in your browser using DataLab