在使用R软件时,我面临的错误是:
dmodel1=list()
for(i in 1:12){
sun.st = i
data1 = fdata(file1, nd = nd, sun.st)
d1= ffit(data1,order=2)
dmodel1[[i]]=d1
fplot(d1, plot.year,label=colnames(data1)[2],ylab=1)
cat(colnames(data1)[2], "\n")
}
错误是:
Error in plot.window(...) : need finite 'ylim' values
In addition: Warning messages:
1: In model.response(mf, "numeric") :
using type = "numeric" with a factor response will be ignored
2: In Ops.factor(y, z$residuals) : - not meaningful for factors
3: In Ops.factor(x[, 2], dataff1f) : - not meaningful for factors
4: In max(dataFF2[, 3], na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
那么,请你帮助我克服这个问题?
由于 呸
答案 0 :(得分:0)
如果在变量中使用某些随机值,是否可以重现错误?没有数据很难评估数据是否以某种方式被损坏" (或者至少不适合你想做的事情)。