数据转换为时间序列R中
答
这应做到:
foo <- data.frame(time = c(0, 0.25, 0.5, 0.75), value = c(1, 2, 5, 8))
foo_ts <- as.ts(foo, start = 0, end = 0.75)
+0
非常感谢。 –
也许'as.ts(数据)'..? – RHertel
更加健壮'动物园::动物园(df $价值,df $时间)' –