diff --git a/help.html b/help.html index 625486a2b..732f81290 100644 --- a/help.html +++ b/help.html @@ -347,14 +347,14 @@
Here we are creating a new object from an existing one:
new_rivers <- sample(rivers, 5)
new_rivers
-## [1] 680 390 2348 410 890
+## [1] 1270 350 435 265 250
Using just this will only print the result and not actually change new_rivers
:
new_rivers + 1
-## [1] 681 391 2349 411 891
+## [1] 1271 351 436 266 251
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] 681 391 2349 411 891
+## [1] 1271 351 436 266 251
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.
Make sure you run something like this, with the <-
operator:
rivers2 <- new_rivers + 1
rivers2
-## [1] 682 392 2350 412 892
+## [1] 1272 352 437 267 252
Feel free to submit typos/errors/etc via the GitHub repository associated with the class: https://github.com/jhudsl/intro_to_r
-This page was last updated on 2025-01-23.
+This page was last updated on 2025-01-24.
diff --git a/resources.html b/resources.html index 6b07f872f..2b9b014a7 100644 --- a/resources.html +++ b/resources.html @@ -393,12 +393,11 @@Want help creating tables?
- -kableExtra
packageDT table
to make interactive tables