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

stepsize

Stepsize


Description

Function that returns the range of step sizes in an object. Range of differences between successive sorted values.

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)

  • default: Default function usable on numeric vectors.

  • numeric: Method for numeric vectors.

  • generic_spct: Method for "generic_spct" objects.

  • generic_mspct: Method for "generic_mspct" objects.

See Also

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

Examples

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

stepsize(sun.spct)

photobiology

Photobiological Calculations

v0.10.10
GPL (>= 2)
Authors
Pedro J. Aphalo [aut, cre] (<https://orcid.org/0000-0003-3385-972X>), Titta K. Kotilainen [ctb] (<https://orcid.org/0000-0002-2822-9734>), Glenn Davis [ctb], Agnese Fazio [ctb]
Initial release
2022-03-24

We don't support your browser anymore

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