I remember coming across this issue in the past but I cannot find the solution anymore.
For a dataframe with the numeric column a
I want to find the row for which a = 27.99
. View the dataframe I know that in row 100 this is the case.
So:
> df$a[100]
27.99
> df$a[100] == 27.99
FALSE
> which(df$a == 27.99)
integer(0)
> is.numeric(df$a[100])
TRUE
I remember it might have to do with machine precision.