From 1913474b52625dee8c39c07d14e6077f498bfd0e Mon Sep 17 00:00:00 2001 From: Thomas Klebel Date: Sun, 21 Aug 2016 00:24:27 +0200 Subject: [PATCH] fix typos in transform (#294) --- transform.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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