[R] Why does a[which(b == c[d])] not work?

Thomas Bock Thomas.Bock at ptb.de
Wed Oct 8 11:27:26 CEST 2003


Dear list,

I can not understand why the expression in
the subject does not work correct:

 > dcrn[which(fn == inve[2])]
numeric(0)
 > inve[2]
[1] 406.7
 > dcrn[which(fn == 406.7)]
 [1] 1.3994e-07 1.3988e-07 1.3953e-07 1.3966e-07 1.3953e-07 1.3968e-07

Is this a kick self problem or an bug?

Thaks very much
Thomas




More information about the R-help mailing list