Converts a Date
vector into its equivalent daily, monthly, yearly,
etc... Date
vector.
convert_date(x, convert_type = "months", convert_to_n = 1)
Input vector of class Date
.
Default: "months"
. String value indicating the
date type. Possible values are "days"
, "months"
.
Default: 1
. Numeric value indicating the number of
convert_type
s to convert to.
Example: convert_type="months"
and convert_to_n=3
indicates a
quarterly conversion.
Converted Date
vector of class mdpms.Date
with
attributes adder
(function that adds units),
convert_to_n
, and convert_type
.