From 947a5da3c17a113e316791aed7cbf6162dc1c87e Mon Sep 17 00:00:00 2001 From: S'busiso Mkhondwane Date: Sun, 21 Aug 2016 00:26:10 +0200 Subject: [PATCH] Update functions.Rmd (#293) Small typo --- functions.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.Rmd b/functions.Rmd index 8cb9f1b..e27ef00 100644 --- a/functions.Rmd +++ b/functions.Rmd @@ -662,7 +662,7 @@ Figuring out what your function should return is usually straightforward: it's w ### Explicit return statements -The value returned by the function is the usually the last statement it evaluates, but you can choose to return early by using `return()`. I think it's best to save the use of `return()` to signal that you can return early with a simpler solution. A common reason to do this is because the inputs are empty: +The value returned by the function is usually the last statement it evaluates, but you can choose to return early by using `return()`. I think it's best to save the use of `return()` to signal that you can return early with a simpler solution. A common reason to do this is because the inputs are empty: ```{r} complicated_function <- function(x, y, z) {