[R] how to overlook the zero in the denominator
u9370004 at cc.kmu.edu.tw
Wed Jul 27 10:51:37 CEST 2005
Dear R users:
I have two set of data, as follow:
I want to sum each (x[i]-y[i])^2/x[i] together,
Because the denominator shoud not be zero.
So I want to overlook those when x[i]=0,
and just to sum those x[i] not equal to 0.
What should I do?
Thanks in advance !!
More information about the R-help