A pretty long list of date-time accessors in data.table conflicts with lubridate:
hour(x)
yday(x)
wday(x)
mday(x)
week(x)
month(x)
quarter(x)
year(x)
A lot of people, including myself, use both data.table and lubridate routinely. So this overlap is rather an inconvenience. There was even a recent bug report to lubridate as a result of the name collision.
Given that data.table is not dedicated package for working with date-times I wonder if date-time functionality could be split into a separate package or date-time accessors deprecated.
The definitions of these functions in data.table are very basic. In lubridate these are all generics with methods for a variety of classes. Setters are also provided. The default method is the same as it is defined in data.table.
A pretty long list of date-time accessors in
data.tableconflicts withlubridate:A lot of people, including myself, use both
data.tableandlubridateroutinely. So this overlap is rather an inconvenience. There was even a recent bug report tolubridateas a result of the name collision.Given that
data.tableis not dedicated package for working with date-times I wonder if date-time functionality could be split into a separate package or date-time accessors deprecated.The definitions of these functions in data.table are very basic. In lubridate these are all generics with methods for a variety of classes. Setters are also provided. The default method is the same as it is defined in
data.table.