Learn R Programming

photobiology (version 0.9.8)

stepsize: Stepsize

Description

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

Usage

stepsize(x, ...)
"stepsize"(x, ...)
"stepsize"(x, ...)
"stepsize"(x, ...)
"stepsize"(x, ..., idx = !is.null(names(x)))

Arguments

x
an R object
...
not used in current version
idx
logical whether to add a column with the names of the elements of spct

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: midpoint, min, range

Examples

Run this code
stepsize(sun.spct)

stepsize(sun.spct)

Run the code above in your browser using DataLab