I have a file and I want to perform time series analysis on the data.Unfortunately I am unable to convert data into time series object?
Here is the snapshot of the code:
I have two column timestamp and closing price.I have tried various code but still unable to do so.
INTC <- read.csv("C:/Users/admin/Downloads/INTC-data.csv")[,c(2,6)]
head(INTC)
tail(INTC)
new_data<-xts(INTC)
Error:"Error in xts(INTC) : order.by requires an appropriate time-based object"