lastDayOfMonth: lastDayOfMonth

Description Usage Arguments Value Examples

View source: R/wagnertimoR.R

Description

This function returns the date ("YYYY-MM-DD") of the last specified day (Sunday == 1, Monday == 2, ... Saturday == 7) in a given month (January == 1 ...)

Usage

1
lastDayOfMonth(day, month, year)

Arguments

day

- Specify the last week day. Sunday == 1, Monday == 2, ... Saturday == 7

month

- Determine the month of the date

year

- Determine the year of the date

Value

date (Date object) of the last given week day in the month and year

Examples

1
2
# Give me the date of the last sunday in october 2016 --> DST date
lastDayOfMonth(1,10,2016)

wagnertimo/wagnertimoR documentation built on May 3, 2019, 7:37 p.m.