powered by
Convert dates to numeric years with decimal as fraction of a year
date2yeardec(date)
a date (class 'Date')
a scalar (class 'numeric')
# NOT RUN { date2yeardec(Sys.Date()) # }
Run the code above in your browser using DataLab