Skip to contents

S3 Methods for printing metabodecon objects as described in the Metabodecon Classes.

Usage

# S3 method for class 'spectrum'
print(x, name = FALSE, ...)

# S3 method for class 'decon1'
print(x, name = FALSE, ...)

# S3 method for class 'decon2'
print(x, name = FALSE, ...)

# S3 method for class 'align'
print(x, name = FALSE, ...)

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

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

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

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

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

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

Arguments

x

The object to print.

name

Logical. If TRUE, the name of the object is printed before the object.

...

Not used. Only accepted to comply with generic base::print().

Value

NULL, called for side effect of printing to the standard output device.

Examples

print(sim[[1]])
#> spectrum object (2048 dp, 3.6 to 3.3 ppm)
print(sim[[1]], name = TRUE)
#> sim_01: spectrum object (2048 dp, 3.6 to 3.3 ppm)
print(sim)
#> spectra object consisting of 16 spectrum objects:
#> sim_01 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_02 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_03 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_04 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_05 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_06 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_07 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_08 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_09 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_10 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_11 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_12 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_13 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_14 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_15 (2048 datapoints from 3.28 - 3.59 ppm)
#> sim_16 (2048 datapoints from 3.28 - 3.59 ppm)
decon <- deconvolute(sim[[1]], sfr = c(3.55, 3.35))
print(decon)
#> decon2 object (2048 dp, 3.6 to 3.3 ppm, 27 peaks)