datefinder: converts a date in month-day-year format and finds the day of...

View source: R/datefinder.r

datefinderR Documentation

converts a date in month-day-year format and finds the day of week

Description

described as "the [dayofweek] occuring in [week] of [month] of [year]"

Usage

datefinder(dayofweek, week, month, year)

Arguments

dayofweek

number 1 through 7, where 1 is Sunday, 2 is Monday, etc.

week

number 1 through 5, for the week within the month

month

number 1 through 12, for the month within the year

year

integer year

Value

date: a given date in month-day-year format, a 3-element vector

Note

calibrated according to Jan 1, 1600 being a Saturday.

if week = 5, the program gives the last dayofweek that occurs


jlivsey/sigex documentation built on March 20, 2024, 3:17 a.m.