> a<-sample(1:6,100,replace=T)
> a
[1] 2 4 3 4 5 1 3 2 4 3 6 6 2 6 2 1 5 5 3 4 6 1 6 6 3 4 6 6 4 4 5 4 6 5 6
3 4 5 6 3 4 1 6 6 6 4 2 1 1 3 1 5 3 2 2 6 2 5
[59] 2 6 1 6 1 1 6 4 4 2 2 3 4 5 6 1 6 4 6 1 5 1 1 2 1 3 4 4 6 3 1 4 1 1 1
5 5 2 4 6 5 1
which(a<=3)
[1] 1 3 6 7 8 10 13 15 16
Problem:
I keep getting: "Error in (index - 9):index : argument of length 0" when I
run this code in an automated loop, but when I step through it by hand, I
have no problems. It keep crashing when i<-10. I cannot figure this out to
save my life! Please help and THANK YOU in advance!
variables:
I have a matrix of p-values for for each explanatory variable. Each row is an
area of the response variable and each column is an explanatory variable.
e.g.
PSA pval_DOY pval_PDSIconcurrent pval_PDSIantecedent_annual_average
pval_TMAXanomaly pval_FM100anomaly
1 NC06 0.96747495 0.60
3 matches
Mail list logo