Skip to contents

Helper function to convert to months if needed

Usage

convert_to_month(x, unit)

Arguments

x

(numeric) time.

unit

(character) or (factor) time unit.

Value

A numeric vector with the time in months.