Hi,
I am planning to forecast DAX data (German stock exchange index). I have downloaded data from Yahoo Finance. When trying to calculate log-returns of the data with the formula
X.tmp<- read.csv("DAXz2016-2021wegmit0.csv",HEADER=TRUE)
x<- X.tmp$Close
n<- length(x)
xd<-100*diff(log(x))
nd<-n-1
time.nd<- as.Date(X.tmp$Date [1:nd]);
I get the error message character string is not in a standard unambiguous format
I have read several posts related to the error message but none of the answers seems to solve my problem.
Can anyone help me?