楼主: daming3775
1789 1

[问答] 系统报错,怎么回事 [推广有奖]

  • 6关注
  • 9粉丝

高级会员

已卖:157份资源

学科带头人

55%

还不是VIP/贵宾

-

威望
0
论坛币
7475 个
通用积分
29.6515
学术水平
22 点
热心指数
35 点
信用等级
17 点
经验
27067 点
帖子
681
精华
0
在线时间
3715 小时
注册时间
2004-11-19
最后登录
2025-12-23

楼主
daming3775 发表于 2013-1-17 20:21:02 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
错误于checkData(R, method = "xts", ...) :
  The data cannot be converted into a time series.  If you are trying to pass in names from a data object with one column, you should use the form 'data[rows, columns, drop = FALSE]'.  Rownames should have standard date formats, such as '1985-03-15'.

二维码

扫码加我 拉你入群

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

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

关键词:Time Series converted Standard Converte Convert 系统

沙发
DM小菜鸟 发表于 2014-12-22 17:40:15

这个错误是关于日期类型的问题,貌似是你没有标准输入,

这么来做——


year <- c("1991-12-30", "1992-12-30", "1993-12-30", "1994-12-30")

R1 <- c(12, 9, 8, 13)

R2 <- c(5,2,9, 13)

d  <- data.frame(year, R1,R2)

str(d)

d$year <- as.Date(d$year)

x <- xts(d[,-1], order.by=d$year, frequency=1)


您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-28 17:41