Displaying 1 result from an estimated 1 matches for "3alooking".
Did you mean:
389looking
2008 Jan 23
1
newbie:looking for an efficient way to compute distance vector
...tep) {
y[i]=sign(x[j]-x[i])*(j-i)
break;
}
}
}
but I wonder if there is a more efficient way to write this. I understand
explicit looping can often be avoided in R using vector notation.
Thanks for your help
--
View this message in context: http://www.nabble.com/newbie%3Alooking-for-an-efficient-way-to-compute-distance-vector-tp15045583p15045583.html
Sent from the R help mailing list archive at Nabble.com.