[R] Why does a[which(b == c[d])] not work?
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Oct 8 13:48:55 CEST 2003
Thomas Bock <Thomas.Bock at ptb.de> writes:
> 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?
Kick self, most likely. What is
inve[2] - 406.7
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list