get_previous: Get previous day from a date

Description Usage Arguments Value Examples

Description

Get previous day from a date

Usage

1
get_previous(what = "samedi", date = Sys.Date())

Arguments

what

Name of the day to retrieve previous the specified date

date

A date, by default the current date

Value

a Date

Examples

 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)

rte-antares-rpackage/antaresWeeklyMargin documentation built on May 16, 2019, 8:15 p.m.