-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Look for date/time column in as.xts.data.frame() #381
Comments
@zeileis, @ggrothendieck: does zoo do anything like this currently? I know it would be harder because zoo doesn't have to be indexed by time. Maybe it could look for one column that was a different type than the rest in the data.frame? |
|
Thanks for your thoughts! I really like that |
I agree with you. However, the
where If we were willing to possibly break existing code we could interpret
But I'm not sure if any of these really make life easier for existing |
as.zoo.data.frame could be a wrapper around read.zoo with the appropriate default arguments to ensure backwards compatibility. |
It would be nice if
as.xts.data.frame()
didn't require date/times as row names, and instead looked for a time-based column in the data.frame if the row names weren't valid index values.For example:
The text was updated successfully, but these errors were encountered: