diff --git a/help.html b/help.html index 0e4c8acbc..6f94572e1 100644 --- a/help.html +++ b/help.html @@ -405,16 +405,16 @@
Here we are creating a new object from an existing one:
new_rivers <- sample(rivers, 5)
new_rivers
-## [1] 350 2533 246 270 360
+## [1] 800 1885 570 2533 286
Using just this will only print the result and not actually change
new_rivers
:
new_rivers + 1
-## [1] 351 2534 247 271 361
+## [1] 801 1886 571 2534 287
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] 351 2534 247 271 361
+## [1] 801 1886 571 2534 287
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.
@@ -484,7 +484,7 @@rivers2 <- new_rivers + 1
rivers2
-## [1] 352 2535 248 272 362
+## [1] 802 1887 572 2535 288