## GOAL: find the third Friday in March 2013
## SOLUTION: find the last Friday in February 2013 and
## shift forward by 3 weeks
last_weekday(5, as.Date("2013-02-01"), shift = 3)
## ... or much simpler
nth_weekday(5, as.Date("2013-03-01"), 3)
Run the code above in your browser using DataLab