# Just the year
x <- year_day(2019:2025)
x
year_day(2020, 1:10)
# Last day of the year, accounting for leap years
year_day(2019:2021, "last")
# Precision can go all the way out to nanosecond
year_day(2019, 100, 2, 40, 45, 200, subsecond_precision = "nanosecond")
Run the code above in your browser using DataLab