fmod {StratigrapheR} | R Documentation |
Universal remainder function
Description
Given a [xmin,xmax[ or ]xmin,xmax] interval, this function determines the remainder of each numeric relative to this interval. In other words if the interval was repeated over the whole numeric domain, this function determines where each value would be positioned in a given repetition.
Usage
fmod(x, xmax, xmin = 0, bounds = "[[")
Arguments
x |
vector of floating point numbers |
xmax , xmin |
the limits of the interval |
bounds |
how to deal with boundaries (right- or left-open; '[[' or ']]') |
See Also
incfix
, dipfix
and transphere
Examples
fmod(c(1260.23,360),360)
fmod(c(1260.23,360),360,bounds = "]]")
fmod(c(1260.23,360),360 + 180, 180)
[Package StratigrapheR version 1.3.1 Index]