wl_stepsize {photobiology}R Documentation

Stepsize

Description

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 [nmnm] of objects of class generic_spct or derived (or the step sizes of values in a numeric vector).

Usage

wl_stepsize(x, ...)

stepsize(x, ...)

## Default S3 method:
stepsize(x, ...)

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

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

## S3 method for class '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)

See Also

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

Examples

stepsize(sun.spct)
wl_stepsize(sun.spct)

stepsize(sun.spct)


[Package photobiology version 0.11.2 Index]