Hello everyone
Please I am facing an error "Error in as.data.frame.default(x[[i]], optional = TRUE) :
cannot coerce class ‘"function"’ to a data.frame" in R studio while I am running below mentioned code:
library(WaveletComp)
data<-read.table("C:/Users/faryal malaika/Desktop/Data Finalized/data.csv",header = TRUE, sep =";", stringsAsFactors = FALSE)
data<-as.Date(data$DATA)
my.data = data.frame(date = date, x = data$x, y = data$y)
Please help me how to sort out this error. I have daily returns data naming columns, date, x and y.