Yes, that was the problem.
Now it's solved.
Thanks a lot,
Dong-Joon
On Sat, Mar 17, 2012 at 6:38 AM, R. Michael Weylandt <
michael.weyla...@gmail.com> wrote:
> My guess is that you're not getting what you expect from operator
> precedence: note that
>
> 1:3 - 1
> 1:(3-1) #Not equal
>
> If that
My guess is that you're not getting what you expect from operator
precedence: note that
1:3 - 1
1:(3-1) #Not equal
If that doesn't fix it, you can use options(error = recover) to find
the values of your logical conditions at the exact moment an error is
thrown and see which one is NA but my money
Hello R friends,
I've got error message as follows;
>
> n<-0
> roc<-array(0,c(ti-1,1))
> avgroc<-0
>
> for(i in 1:ti-1){
+ if(orientation=="in"){
+ if(eff_p1[i,1,i]==1 && eff_p1[i,1,ti-1]<1 && ed[i,1]>d[i,1]){
+ roc[i,1]<-(1/eff_p1[i,1,ti-1])^(1/(ed[i,1]-d[i,1]))
+ n<-n+1
+ }
+ }
3 matches
Mail list logo