fmod {StratigrapheR} | R Documentation |
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.
fmod(x, xmax, xmin = 0, bounds = "[[")
x |
vector of floating point numbers |
xmax , xmin |
the limits of the interval |
bounds |
how to deal with boundaries (right- or left-open; '[[' or ']]') |
incfix
, dipfix
and transphere
fmod(c(1260.23,360),360)
fmod(c(1260.23,360),360,bounds = "]]")
fmod(c(1260.23,360),360 + 180, 180)