fmod: Universal remainder function

fmodR 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)


StratigrapheR documentation built on July 9, 2023, 6:02 p.m.