y*****w 发帖数: 1350 | 1 Error in if (t1 || t2) { : missing value where TRUE/FALSE needed
I got the above error message when running an R program. What does this
error mean, and how to debug the program?
Thanks! |
y*****w 发帖数: 1350 | 2 Or, more specifically, what does t1 and t2 mean? |
l****l 发帖数: 246 | 3 "if (t1 || t2) {" 这应该是你程序里的语句,你不知道t1和t2是什么?
这个错多半是因为t1或者t2没赋上值吧 |
y*****w 发帖数: 1350 | 4 Thank you for your response. t1 and t2 are not my 程序里的语句. I was
running a joint model of longitudinal and survival analysis using the R
package JM. I think t1 and t2 are some intermediate parameters that were
created when running the program, but I don't know what they are, and I don'
t know what "t1 || t2" means in the context. Thanks!
【在 l****l 的大作中提到】 : "if (t1 || t2) {" 这应该是你程序里的语句,你不知道t1和t2是什么? : 这个错多半是因为t1或者t2没赋上值吧
|
l******n 发帖数: 9344 | 5 logical OR
t1,t2 are two expressions
You have to see what are the values of them to determine the err
don'
【在 y*****w 的大作中提到】 : Thank you for your response. t1 and t2 are not my 程序里的语句. I was : running a joint model of longitudinal and survival analysis using the R : package JM. I think t1 and t2 are some intermediate parameters that were : created when running the program, but I don't know what they are, and I don' : t know what "t1 || t2" means in the context. Thanks!
|
h***i 发帖数: 3844 | 6 t1 or t2 has no value.
【在 y*****w 的大作中提到】 : Error in if (t1 || t2) { : missing value where TRUE/FALSE needed : I got the above error message when running an R program. What does this : error mean, and how to debug the program? : Thanks!
|
t******g 发帖数: 372 | 7 你可以traceback()
最终找到问题需要你去debug其他函数,纯r代码的functionname即可看到函数本体
如上面所说应该是没有赋值造成的,
don'
【在 y*****w 的大作中提到】 : Thank you for your response. t1 and t2 are not my 程序里的语句. I was : running a joint model of longitudinal and survival analysis using the R : package JM. I think t1 and t2 are some intermediate parameters that were : created when running the program, but I don't know what they are, and I don' : t know what "t1 || t2" means in the context. Thanks!
|