Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmissing `date` function #373
Comments
|
Hmmm, I'm not a big fan of overriding base R functions (although I agree it wouldn't make much difference here). Why not call it |
|
|
|
|
Ooooh, I totally misread that |
|
Unless someone tells me otherwise I'm going to do a pull request early next week for |
|
Overwriting |
|
Agreed - I'll implement early next week Sent from my iPhone On Jan 22, 2016, at 22:02, Vitalie Spinu notifications@github.com wrote: get_date and set_date is pretty bad IMO. It conflicts with R's foo<- Overwriting date is a small price to pay for clarity and consistency of — |
lubridate provides
day,hourandyearfunctions to get and set the day, hour and year components of a date time. A logical addition would be adatefunction to get and set the date component. It would circumvent the use of as.Date(,tz) which can cause problems if tz is set wrong. It would conflict with the base version ofdatewhich is poorly named and effectively replaced by lubridate::today. It could be calledd8to avoid any conflicts.Please let me know if I am missing something.
I am willing to implement.