Skip to contents

Method returning the range of step sizes in an object; i.e., the Range of differences between successive sorted values. In particular the wavelength step sizes [\(nm\)] of objects of class generic_spct or derived (or the step sizes of values in a numeric vector).

Usage

wl_stepsize(x, ...)

stepsize(x, ...)

# S3 method for default
stepsize(x, ...)

# S3 method for numeric
stepsize(x, ...)

# S3 method for generic_spct
stepsize(x, ...)

# S3 method for generic_mspct
stepsize(x, ..., idx = "spct.idx")

Arguments

x

an R object

...

not used in current version

idx

character Name of the column with the names of the members of the collection of spectra.

Value

A numeric vector of length 2 with min and maximum stepsize values.

Methods (by class)

  • stepsize(default): Default function usable on numeric vectors.

  • stepsize(numeric): Method for numeric vectors.

  • stepsize(generic_spct): Method for "generic_spct" objects.

  • stepsize(generic_mspct): Method for "generic_mspct" objects.

See also

Other wavelength summaries: wl_midpoint(), wl_min(), wl_range()

Examples

stepsize(sun.spct)
#> [1] 0.9230769 1.0000000
wl_stepsize(sun.spct)
#> [1] 0.9230769 1.0000000

stepsize(sun.spct)
#> [1] 0.9230769 1.0000000