Created
April 22, 2014 19:47
-
-
Save multidis/11191971 to your computer and use it in GitHub Desktop.
Time series object from dataframe with date-class column: via zoo-class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(zoo) | |
## as time series object | |
fx.zoo <- zoo(x=fxsum[,-1], order.by=fxsum$Date) | |
head(fx.zoo) | |
fx.ts <- as.ts(fx.zoo) | |
head(fx.ts) | |
plot(fx.ts) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment