0

I am trying to read a .csv file into R as time series using zoo package.That's what I've written so far:

tbl<-as.xts(read.zoo("~//Documents//thesis research//myseries (version 1)2.csv",sep="/",header=T,format=%m/%d/%Y))

I 've got a following error message:

Error: unexpected SPECIAL in "tbl<-as.xts(read.zoo("~//Documents//thesis research//myseries (version 1)2.csv",sep="/",header=T,format=%m/%">

Any ideas how to solve this?

bartektartanus
  • 15,284
  • 6
  • 74
  • 102
user3546838
  • 89
  • 1
  • 1
  • 3

1 Answers1

1

Try putting format into " ", like this

format="%m/%d/%Y"
bartektartanus
  • 15,284
  • 6
  • 74
  • 102