0
在下面的代碼,我拿到「分配的目標擴大到非語言的對象」錯誤:「分配的目標擴大到非語言的對象」中的R
> rho=c(0,0,0)
> if (rho[1]>1 || rho[1] <-1 || rho[2]>1 || rho[2] <-1 || rho[3]>1 || rho[3] <-1){
+ cat("Correlation must be within [-1,1]!\n");
+ retMCx = NULL; retMCy = NULL; retMCz =NULL;
+ }
Error in 1 || rho[3] > 1 || rho[3] <- 1 : target of assignment expands to non-language object
任何想法,爲什麼?謝謝!