Which day a week starts depends heavily on the either the local or professional context. This package is designed to be a lightweight solution to easily switching between week-based date definitions.
factor = TRUE
without floor_day = TRUE
will now issue a message
indicating that this is deprecated in future versions of aweek (see #13).aweek
class (see #1)as.POSIXlt()
bug where tz
was not being passed was fixed.date2week()
: an error is now issued if users specify non-ISO 8601 dates OR
don't specify a format
option. (found: @scottyaz, #2)date2week()
and week2date()
can now take days represented as characters in
the current or English locale.date2week()
gains a factor
argument, which will automatically compute the
levels within the date range.date2week()
now properly accounts for dates in December that occur in the
first week of the next year.floor_day
now truncates the week instead changing the last digit to 1 for
aesthetics. (Thanks to @aspina7 for the suggestion)
q print.aweek()
now displays the day of the week in the current locale.date2week()
converts dates to aweek
objectsweek2date()
converts aweek
objects or character strings to datesas.Date()
does the same thing as aboveas.POSIXlt()
as wellas.character()
unclasses the aweek
objectNEWS.md
file to track changes to the package.