Skip to content
Prev 30260 / 398503 Next

Comparing fp numbers, was Bug in %in% (match)

Hi,
I am dense some days, the following worked;
tst<-as.integer(get.mult(precis)*new.t)%in%as.integer(get.mult(precis)*round(t,precis))

I didn't catch this part of the documentation

Factors are converted to character vectors, and then `x' and
     `table' are coerced to a common type (the later of the two types
     in R's ordering, logical < integer < numeric < complex <
     character) before matching.


Nicholas
On Mon, 2003-04-07 at 11:10, Nicholas Lewin-Koh wrote: