From d1b22c55cfad7aed2f2faac4abdaa5d3baa2c753 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Jan 2025 17:25:03 +0000 Subject: [PATCH] Render site --- help.html | 8 ++++---- modules/Data_Input/lab/Data_Input_Lab.html | 14 +++++++++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/help.html b/help.html index 0a682eafc..cfc22020b 100644 --- a/help.html +++ b/help.html @@ -347,14 +347,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]  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.


@@ -403,7 +403,7 @@

Error: object ‘X’ not found

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

diff --git a/modules/Data_Input/lab/Data_Input_Lab.html b/modules/Data_Input/lab/Data_Input_Lab.html index 10029654a..31d61317a 100644 --- a/modules/Data_Input/lab/Data_Input_Lab.html +++ b/modules/Data_Input/lab/Data_Input_Lab.html @@ -186,9 +186,17 @@

TROUBLESHOOTING: Common new user mistakes we have seen

1.1

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!

-
+
    +
  • 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