【发布时间】:2013-02-25 23:34:55
【问题描述】:
我是 zoo 的新用户,并试图获取 zoo 对象中两个元素的最小值,并将其分配给其中一个。我收到以下错误消息。请帮忙解释一下。
library("tseries")
IBM <- get.hist.quote(instrument="IBM", start="2012-01-01", end="2012-12-31")
IBM[1]$Low <- min( IBM[1]$Low , IBM[2]$Low )
Warning message:
In NextMethod("[<-") :
number of items to replace is not a multiple of replacement length
【问题讨论】: