From 4efd7e5da65f56adf8f7d5023f6bce8144bece11 Mon Sep 17 00:00:00 2001 From: Jakub Nowosad Date: Fri, 25 Mar 2016 15:42:33 +0100 Subject: [PATCH] link fixed --- functions.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.Rmd b/functions.Rmd index bfe5e4f..686685d 100644 --- a/functions.Rmd +++ b/functions.Rmd @@ -106,7 +106,7 @@ df$c <- rescale01(df$c) df$d <- rescale01(df$d) ``` -Compared to the original, this code is easier to understand and we've eliminated one class of copy-and-paste errors. There is still quite a bit of duplication since we're doing the same thing to multiple columns. We'll learn how to eliminate that duplication in [iteration], once you've learn more about R's data structures in [data_structures]. +Compared to the original, this code is easier to understand and we've eliminated one class of copy-and-paste errors. There is still quite a bit of duplication since we're doing the same thing to multiple columns. We'll learn how to eliminate that duplication in [iteration], once you've learn more about R's data structures in [data-structures]. Another advantage of functions is that if our requirements change, we only need to make the change in one place. For example, we might discover that some of our variables include infinite values, and `rescale01()` fails: