r - Converting xts to ts: Error in Round(frequency) -
i have imported csv data have turned xts object. if try convert ts object (with end goal of using functions acf) get: "error in round(frequency) : non-numeric argument mathematical function" the code convert is: library("zoo") #working milliseconds op <- options(digits.secs=3) #rename function clean_perfmon = function(x, servername) { names(x)[names(x)=="x.pdh.csv.4.0...coordinated.universal.time..0."] <- "time" x$time = strptime(x$time, "%m/%d/%y %h:%m:%os") return(x) } web02 = read.csv("/home/kbrandt/desktop/shared/web02_2011_07_20_1.csv") web02 = clean_perfmon(web02, "ny.web02") web02ts = xts(web02[,-1], web02[,"time"]) the time regular, variation in ms: time(web02ts)[1:3] [1] "2011-07-20 11:21:50.459 edt" "2011-07-20 11:21:51.457 edt" "2011-07-20 11:21:52.456 edt" some of data has na points: > web02ts[1:3,1] x...