Created
January 3, 2014 20:46
-
-
Save jseabold/8246270 to your computer and use it in GitHub Desktop.
Write dates to file in R. Must be a better way. What is this? SAS?
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(fpp) | |
data(usmelec) | |
write.csv(as.data.frame(list(date=as.Date(usmelec), usmelec=coredata(usmelec))), "usmelec.csv", row.names=FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment