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

show

Convert a hyperSpec object to character strings for Display print, show, and summary show the result of as.character.


Description

print, show, and summary differ only in the defaults. show displays the range of values instead,

Usage

## S4 method for signature 'hyperSpec'
as.character(
  x,
  digits = getOption("digits"),
  range = TRUE,
  max.print = 5,
  shorten.to = c(2, 1)
)

## S4 method for signature 'hyperSpec'
show(object)

## S4 method for signature 'hyperSpec'
print(x, range = FALSE, ...)

## S4 method for signature 'hyperSpec'
summary(object, ...)

Arguments

x

a hyperSpec object

digits

number of digits handed over to format

range

should the values be indicated as range rather then first and last elements?

max.print

maximum number of elements to be printed (of a variable)

shorten.to

if a vector is longer than max.print, only the first shorten.to[1] and the last shorten.to[2] elements are printed

object

a hyperSpec object

...

print and summary hand further arguments to as.character

Value

as.character returns a character vector fit to be printed by cat with sep = "\n".

print invisibly returns x after printing, show returns an invisible NULL.

See Also

Examples

chondro

show (chondro)

summary (chondro)

print (chondro, range = TRUE)

hyperSpec

Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

v0.100.0
GPL (>= 3)
Authors
Claudia Beleites [aut, cre, dtc] (<https://orcid.org/0000-0003-1626-154X>), Valter Sergo [aut], Alois Bonifacio [ctb, dtc], Marcel Dahms [ctb], Björn Egert [ctb], Simon Fuller [ctb], Vilmantas Gegzna [ctb], Rustam Guliev [ctb], Bryan A. Hanson [ctb], Michael Hermes [ctb], Martin Kammer [dtc], Roman Kiselev [ctb], Sebastian Mellor [ctb]
Initial release
2021-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.