time2ym: Time related conversion functions

Description Usage Arguments Value Author(s) See Also

View source: R/time2ym.R

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.


vetools documentation built on May 2, 2019, 10:15 a.m.