I was trying a seq() function for a loop in R studio and found that I had a problem with it.
When I ask : 5.1 %in% seq(0,9, by = 0.01) (or even 0.1) R print FALSE.
Only when I print the sequence, 5.1 appears correctly in the list. Moreover, if I ask for which(seq(0,9, by = 0.01)), it gives me integer(0). If I perform the same test with 5.2, everything works normally.
Do you know what is causing the problem?
I have the tidyverse and dplyr packages installed.
5.1 %in% seq(0,9, by = 0.01) is FALSE when it should be TRUE