Learn R Programming

vetools (version 1.3-28)

diffmonths: Difference between two time-series

Description

Calculates the difference in months of two time-series objects.

Usage

diffmonths(date1, date2)

Arguments

date1
objects of class "ts"
date2
objects of class "ts"

Value

Returns the number of months between the start of two class "ts" objects

See Also

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