全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
6550 2
2015-09-22
Hi there,

I'm trying out R and would like to first import a time series variable into R. As you can see in the picture attached, the upper part with large numbers, i.e., 38,430.18, 38,134.14, etc., are my real dataset; however, when I use ts() command to define the data as time series, all the values become integers in the lower table, 1, 2, 3, ....21, 22, 53, 54,...,88,...

What do you think could be wrong and how can I fix it?

Thanks!

附件列表
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-9-22 22:16:53
已解决,谢谢!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-1-14 20:51:26
R_i =  read.table("5minET500.csv",
                  header = TRUE,
                  sep = ",",
                  row.names = NULL
)
#数据整理
R.xts <- xts(R_i, as.POSIXct(R_i[, 1]))

找了很久,终于找到了。换成自己的数据就可以了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群