Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

currentMonday

Day of Week Time Indexes


Description

Return daily ti's for particular days of the week

Usage

currentMonday(xTi = today())
currentTuesday(xTi = today())
currentWednesday(xTi = today())
currentThursday(xTi = today())
currentFriday(xTi = today())
currentSaturday(xTi = today())
currentSunday(xTi = today())
latestMonday(xTi = today())
latestTuesday(xTi = today())
latestWednesday(xTi = today())
latestThursday(xTi = today())
latestFriday(xTi = today())
latestSaturday(xTi = today())
latestSunday(xTi = today())

Arguments

xTi

a ti object or something that the ti() function can turn into a ti object

Value

currentMonday returns the daily ti for the last day of the Monday-ending week that its argument falls into. currentTuesday returns the daily ti for the last day of the Tuesday-ending week that its argument falls into, and so on for the other weekdays.

latestMonday returns the daily ti for the last day of the most recent completed Monday-ending week that its argument falls into. Ditto for the other days of the week.

See Also


tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.