如何将列表转换为R中的时间序列?

时间:2016-12-05 18:33:28

标签: r

我已经导入了这样的文本文件

z<-read.table("o8192",header=FALSE,as.is=TRUE);

但我在下一步遇到问题

spec.mtm(z,nw=4.0, k=7, nFFT="default", taper=c("dpss"))
Warning message:
In spec.mtm(z, nw = 4, k = 7, nFFT = "default", taper = c("dpss")) :
  Time series is not a ts object and deltat is not set. Frequency array and axes may be incorrect.

> head(z)
         V1
1 -938.5499
2 -938.5424
3 -938.5349
4 -938.5236
5 -938.5236
6 -938.5123

z有8192行。

如何将列表转换为ts?

0 个答案:

没有答案