diff --git a/transform.Rmd b/transform.Rmd index 24198f1..e4ba149 100644 --- a/transform.Rmd +++ b/transform.Rmd @@ -93,14 +93,14 @@ sqrt(2) ^ 2 == 2 1/49 * 49 == 1 ``` -Computers use finite precision arithmetic (they obviously can't store an infinite number of digits!) so remember that every number you see is an approximation. Instead of relying on `==`, use use `dplyr::near()`: +Computers use finite precision arithmetic (they obviously can't store an infinite number of digits!) so remember that every number you see is an approximation. Instead of relying on `==`, use `dplyr::near()`: ```{r} near(sqrt(2) ^ 2, 2) near(1 / 49 * 49, 1) ``` -(Remember that we use `::` to explicit about where a function lives. If dplyr is installed, `dplyr::near()` will always work. If you want to use the shorter `near()`, you need to make sure you have loaded dplyr with `library(dplyr)`.) +(Remember that we use `::` to be explicit about where a function lives. If dplyr is installed, `dplyr::near()` will always work. If you want to use the shorter `near()`, you need to make sure you have loaded dplyr with `library(dplyr)`.) ### Logical operators