Description Usage Arguments Value Examples
Get previous day from a date
1  | get_previous(what = "samedi", date = Sys.Date())
 | 
what | 
 Name of the day to retrieve previous the specified date  | 
date | 
 A date, by default the current date  | 
a Date
1 2 3 4 5 6 7 8 9 10 11  | # Previous friday
get_previous(what = "vendredi")
# You can abreviate
get_previous(what = "ven")
# Previous saturday before previous friday
get_previous(what = "samedi", date = get_previous(what = "vendredi"))
# Alternatively you can pass a number between 1-7 where 1 is Monday
get_previous(what = 7)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.