month_cycle
can be a numeric vector (corresponding to the months in which contracts expire),
or it can be a vector of month codes, a vector of month abbreviations, or a comma-delimited
string of month codes or abbreviations, in which case an attempt will be made to convert it to a numeric vector.
by passing it through month_cycle2numeric
root
is primarily used when you have an id that does not have an underscore, in which case, providing root
will make splitting the id into primary_id and suffix_id easier and more accurate. root
can also be used if you want
the returned id to be on a different future
than the id you passed in (when used this way, format
should also be used).
By default, (when called with format=NULL
) the returned id will be of the same format as the id
that was passed in.
The format of the returned id can be specified with the format
argument. See format_id
for supported values of format