-
Notifications
You must be signed in to change notification settings - Fork 12
New coercion methods #192
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
New coercion methods #192
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
OK, I think this is basically ready to go, thank you!! Take one last look at my latest edits/comments, should be minor. |
|
I was surprised, that as.difftime.integer64 worked even though the generic as.difftime was not exported anymore. By checking it, I found out, that base::as.difftime automatically converts to double, if the input is numeric. And since is.numeric(integer64) is TRUE, no extra methods are necessary. I kept the tests, so that we are aware if something changes in R. |
Oh, perfect, thanks! |
Closes #199
I added coercion methods for
Date,POSIXct,POSIXlt,complex,rawanddifftime. I also made the methods consistent regarding thekeep.namesargument.