fix typos in transform (#294)
This commit is contained in:
parent
d150dce730
commit
1913474b52
|
@ -93,14 +93,14 @@ sqrt(2) ^ 2 == 2
|
||||||
1/49 * 49 == 1
|
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}
|
```{r}
|
||||||
near(sqrt(2) ^ 2, 2)
|
near(sqrt(2) ^ 2, 2)
|
||||||
near(1 / 49 * 49, 1)
|
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
|
### Logical operators
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue