-
Notifications
You must be signed in to change notification settings - Fork 991
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
week() does not return actual calendar week #1765
Comments
please include the output -- I'm not at a machine so I can't tell what you see/expect. For now, please see the relevant code and I particular the preceding comment section: https://github.com/Rdatatable/data.table/blob/master/R/IDateTime.R |
see also #1658 which i imagine is related |
Updated the example. Actually, the week() produces this: "Weeks is the number of complete seven day periods that have occured between the date and January 1st, plus one..."(see http://stackoverflow.com/questions/27116645/r-week-function-returns-unexpected-values). I think that this is an unexpected return that a lot of users are not aware of. |
According to you, what will most users expect for |
OK, you're right. |
Thanks @STATWORX for filing the issue (by following up from twitter). Perhaps we'll need an isoweek as well. Good to know. |
@MichaelChirico do you think you've some time to look up into |
sure, why not =D |
Closes #1765 -- new isoweek function produces ISO 8601-consistent week numbering as an integer
Hi,
the week() function does not return the actual calendar week (what I think most users expect).
Please fix or rename function since a lot of users are expecting a different result.
Thank you!
Example:
The text was updated successfully, but these errors were encountered: