## To get start, end and sequence of previous year
previousyear <- previous_year()
## To get vector of date sequences
previous_year(part = "sequence")
previous_year()$sequence
seq(previousyear)
## Get number of days of previous year
day_nums <- previous_year(part = "length")
previous_year()$length
length(previousyear)
Run the code above in your browser using DataLab