search for: sprd_d

Displaying 1 result from an estimated 1 matches for "sprd_d".

Did you mean: sprd
2011 Dec 28
2
Loops and vector operations
Dear all, this is my first post and I?m very new at R, I don?t know if somebody can help with an issue. I?m doing some exercices and I don?t know if for example I can convert this for in an operation with vectors: for (i in 2:n){ if (ES[i-1]==0 && sprd[i-1]>mediaSDP[i-1] && sprd[i]<=mediaSDP[i]) {ES[i] <- -1} else if((ES[i-1]==-1 || ES[i-1]==-15) &&