-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing 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
,hour
andyear
functions to get and set the day, hour and year components of a date time. A logical addition would be adate
function 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 ofdate
which is poorly named and effectively replaced by lubridate::today. It could be calledd8
to avoid any conflicts.Please let me know if I am missing something.
I am willing to implement.
The text was updated successfully, but these errors were encountered: