Skip to contents

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

Usage

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

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

Arguments

x

An object of one of the summary classes for spectra

...

named arguments passed to the print() method for class "tbl_df".

width

integer Width of text output to generate. This defaults to NULL, which means use the width option.

n

integer Number of member spectra for which information is printed.

Functions

  • print(summary_generic_mspct):

See also

Examples

print(summary(sun.spct))
#> Summary of source_spct [522 x 3] object: sun.spct
#> Wavelength range 280-800 nm, step 0.9230769-1 nm
#> Label: sunlight, simulated 
#> Measured on 2010-06-22 09:51:00 UTC 
#> Measured at 60.20911 N, 24.96474 E; Kumpula, Helsinki, FI 
#> Variables:
#>  w.length: Wavelength [nm]
#>  s.e.irrad: Spectral energy irradiance [W m-2 nm-1]
#>  s.q.irrad: Spectral photon irradiance [mol s-1 m-2 nm-1] 
#> --
#>     w.length       s.e.irrad        s.q.irrad        
#>  Min.   :280.0   Min.   :0.0000   Min.   :0.000e+00  
#>  1st Qu.:409.2   1st Qu.:0.4115   1st Qu.:1.980e-06  
#>  Median :539.5   Median :0.5799   Median :2.929e-06  
#>  Mean   :539.5   Mean   :0.5160   Mean   :2.407e-06  
#>  3rd Qu.:669.8   3rd Qu.:0.6664   3rd Qu.:3.155e-06  
#>  Max.   :800.0   Max.   :0.8205   Max.   :3.375e-06  

print(summary(sun_evening.mspct))
#> Summary of source_mspct [5 x 1] object: sun_evening.mspct
#> # A tibble: 5 × 8
#>   spct.idx class  dim   w.length.min w.length.max colnames multiple.wl time.unit
#>   <chr>    <chr>  <chr>        <dbl>        <dbl> <list>         <dbl> <chr>    
#> 1 time.01  sourc… [1,5…          290        1000. <chr>              1 second   
#> 2 time.02  sourc… [1,5…          290        1000. <chr>              1 second   
#> 3 time.03  sourc… [1,5…          290        1000. <chr>              1 second   
#> 4 time.04  sourc… [1,5…          290        1000. <chr>              1 second   
#> 5 time.05  sourc… [1,5…          290        1000. <chr>              1 second