Learn R Programming

colorSpec (version 0.5-2)

print: Convert colorSpec object to readable text

Description

display a colorSpec object as readable text

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, calibration, and product terms
...
further arguments ignored

Value

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

Details

print shows 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. summary prints the same as print, and if long is TRUE it also prints metadata and data about product terms (if any). The function print simply calls summary with long=TRUE.

See Also

extradata, print, summary in base.

Examples

Run this code
print( xyz1931.1nm )

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

Run the code above in your browser using DataLab