From a2f7418c10e64c2f5a842caf3653f09fa417674b Mon Sep 17 00:00:00 2001 From: pete Date: Wed, 20 Jun 2018 04:00:13 -0400 Subject: [PATCH] Update functions.Rmd (#591) --- functions.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.Rmd b/functions.Rmd index 2c92713..d594cd5 100644 --- a/functions.Rmd +++ b/functions.Rmd @@ -59,7 +59,7 @@ x <- df$a (x - min(x, na.rm = TRUE)) / (max(x, na.rm = TRUE) - min(x, na.rm = TRUE)) ``` -There is some duplication in this code. We're computing the range of the data three times, but it makes sense to do it in one step: +There is some duplication in this code. We're computing the range of the data three times, so it makes sense to do it in one step: ```{r} rng <- range(x, na.rm = TRUE)