diff --git a/help.html b/help.html index 0a682eafc..cfc22020b 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] 730 1885 424 560 500
+## [1] 1054 250 291 300 230
Using just this will only print the result and not actually change new_rivers
:
new_rivers + 1
-## [1] 731 1886 425 561 501
+## [1] 1055 251 292 301 231
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] 731 1886 425 561 501
+## [1] 1055 251 292 301 231
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] 732 1887 426 562 502
+## [1] 1056 252 293 302 232
Set up your R Project.
--+File, New Project or click the new project button New Directory New Project Type a name and choose a location Check that the folder is there!
-
Check out our resource here: https://jhudatascience.org/intro_to_r/resources/R_Projects.html