Smart modulo 12 for time aritmetics

Share:

Description

Calculates which month corresponds to the number x, smart modulo 12-wise.

Usage

1
m12(x)

Arguments

x

integer

Value

Returns an integer 1 through 12 for the corresponding month of a positeve integer x, starting with x=1 being january. Note that x=13 is also january...

Author(s)

A.M. Sajo-Castelli

See Also

vetools, diffmonths, tssum, diasdelmes, time2ym, ym2time, xts2ts.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.