View source: R/rbms_organize_data.r
ts_dwmy_table | R Documentation |
ts_dwmy_table Generate a time-series of dates with day, week, month and year (dwmy) from one initial to an end years
ts_dwmy_table(
InitYear = 1970,
LastYear = format(Sys.Date(), "%Y"),
WeekDay1 = "monday"
)
InitYear |
start year of the time-series, 4 numbers format (e.g 1987) |
LastYear |
end year of the time-series, if not provided, current year is used instead |
WeekDay1 |
to start the week on Monday, use 'monday', otherwise the week start on Sunday |
a data.table object with the date, the day since the first date, the week since the first week, the year, the month, the day in the month, the ISO week number and the day in the week.
Reto Schmucki - reto.schmucki@mail.mcgill.ca
ts_date_seq, IDateTime
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.