Helper function to convert to months if needed
convert_to_month(x, unit)
x
(numeric) time.
numeric
unit
(character) or (factor) time unit.
character
factor
A numeric vector with the time in months.