R运行过程中出现的错误,始终没明白哪里错了?怎么改?
rho_space <- c (0.00, 0.10, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70)
for (target_rho in rho_space){
rho <- Inf
while(abs(rho-target_rho) > target_rho_error) {
……
运行结果报错为:错误于rho - target_rho : 二进列运算符中有非数值参数
各位帮帮忙吧~~我是初学者,非常感谢!