time2ym: Time related conversion functions

Description Usage Arguments Value Author(s) See Also

Description

These functions convert between class "Date" and c(year, month) dates.

Usage

1
2

Arguments

d

object of class "Date" that can be converted to c(year, month)

e

object of class "ts"

Value

time2ym

returns a vector of length 2 specifying year and month corresponding to a date given, compatible with commands start and end for objects of class "ts"

ym2time

returns a class "Date" object determined by the specified year and month

Author(s)

A.M. Sajo-Castelli

See Also

vetools, diffmonths, tssum, diasdelmes, xts2ts.



Search within the vetools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.