From a90b92dfe7a61807459e0ced6b900cd7c9ab5d16 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 5 Dec 2024 21:03:57 +0000 Subject: [PATCH] Render site --- help.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/help.html b/help.html index 631985d1..5f53e07b 100644 --- a/help.html +++ b/help.html @@ -353,14 +353,14 @@

Why are my changes not taking effect? It’s making my results look

Here we are creating a new object from an existing one:

new_rivers <- sample(rivers, 5)
 new_rivers
-
## [1] 390 338 900 217 720
+
## [1] 618 981 525 360 600

Using just this will only print the result and not actually change new_rivers:

new_rivers + 1
-
## [1] 391 339 901 218 721
+
## [1] 619 982 526 361 601

If we want to modify new_rivers and save that modified version, then we need to reassign new_rivers like so:

new_rivers <- new_rivers + 1
 new_rivers
-
## [1] 391 339 901 218 721
+
## [1] 619 982 526 361 601

If we forget to reassign this can cause subsequent steps to not work as expected because we will not be working with the data that has been modified.


@@ -409,7 +409,7 @@

Error: object ‘X’ not found

Make sure you run something like this, with the <- operator:

rivers2 <- new_rivers + 1
 rivers2
-
## [1] 392 340 902 219 722
+
## [1] 620 983 527 362 602