I am having an issue with two double columns that are not resulting in the expected result. The data that is displayed using pull() yields a double scalar-value of 0.1 for both columns a
and b
. The expected result of a > b
should be FALSE
, but is resulting in TRUE
.
I have tried troubleshooting to see what the values in the data frame explicitly are, but everything prints as 0.1. What functions can I use to help determine if there's a rounding error going on?
tibble %>%
summarize(max_a = max(a), max_b = max(b)) %>%
mutate(tf = max_a < max_b)