From 8b8ca8a97df4bd94373e79d219250945fb4459f8 Mon Sep 17 00:00:00 2001 From: Cole Arendt Date: Wed, 5 Aug 2020 05:28:00 -0400 Subject: [PATCH 1/2] fix-typo --- basics/04-Programming-Basics/04-Programming-Basics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/04-Programming-Basics/04-Programming-Basics.Rmd b/basics/04-Programming-Basics/04-Programming-Basics.Rmd index f462e16..e45fd1b 100644 --- a/basics/04-Programming-Basics/04-Programming-Basics.Rmd +++ b/basics/04-Programming-Basics/04-Programming-Basics.Rmd @@ -60,7 +60,7 @@ R is easiest to use when you know how the R language works. This tutorial will t ### Run a function -Can you use the `sqrt()` function in the chunk below to compute the square root of 962? +Can you use the `sqrt()` function in the chunk below to compute the square root of 961? ```{r functions-1, exercise = TRUE} From 5a5b844847b7b6f6b5f909e50bcac1637ef7efef Mon Sep 17 00:00:00 2001 From: Cole Arendt Date: Wed, 5 Aug 2020 05:36:37 -0400 Subject: [PATCH 2/2] add clarification otherwise there is an "invisible" warning that could be confusing --- basics/04-Programming-Basics/04-Programming-Basics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basics/04-Programming-Basics/04-Programming-Basics.Rmd b/basics/04-Programming-Basics/04-Programming-Basics.Rmd index e45fd1b..325b0a5 100644 --- a/basics/04-Programming-Basics/04-Programming-Basics.Rmd +++ b/basics/04-Programming-Basics/04-Programming-Basics.Rmd @@ -258,7 +258,7 @@ iris ### rm() -What if you accidentally overwrite an object? If that object came with R or one of its packages, you can restore the original version of the object by removing your version with `rm()`. Run `rm()` on `iris` below to restore the iris data set. +What if you accidentally overwrite an object? If that object came with R or one of its packages, you can restore the original version of the object by removing your version with `rm()`. Run `rm()` on `iris` below to restore the iris data set. Then print `iris` again to show that the original version has been restored. ```{r objects-5, exercise = TRUE} iris <- 1