After your 4th line of code (your second read.csv statement) what is the output of
str(EURUSD) --Chris Ryan Sent from my android device. -----Original Message----- From: Mehmet Dogan <m.do...@mail.com> To: r-help@r-project.org Sent: Sun, 13 Sep 2015 17:57 Subject: [R] Please read **URGENT** Need help with R library(xts) library(zoo) EURUSD<-read.csv("Data_Forecast/EURUSD.csv") # to load the data EURUSD<-read.csv("Data_Forecast/EURUSD.csv",stringsAsFactors=F) # to load as a factor #?????????? EURUSD$Date<-as.Date(EURUSD$Date,format="%Y-%m-%d" , "h:m:s") # here the code is not working to format the "Date" # lets leave just date and close price EURUSD<-EURUSD[,c(1,5)] # and change the name of the last column into EURUSD names(EURUSD)[2]<-"EURUSD" #????????????? EURUSD.xts<-xts(EURUSD$EURUSD,SP500$Date) # here also i create xts object for these time series ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.