File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -397,14 +397,14 @@ <h2><strong>Why are my changes not taking effect? It’s making my results look
397397< p > Here we are creating a new object from an existing one:</ p >
398398< pre class ="r "> < code > new_rivers <- sample(rivers, 5)
399399new_rivers</ code > </ pre >
400- < pre > < code > ## [1] 696 870 250 625 545 </ code > </ pre >
400+ < pre > < code > ## [1] 255 735 276 407 470 </ code > </ pre >
401401< p > Using just this will only print the result and not actually change < code > new_rivers</ code > :</ p >
402402< pre class ="r "> < code > new_rivers + 1</ code > </ pre >
403- < pre > < code > ## [1] 697 871 251 626 546 </ code > </ pre >
403+ < pre > < code > ## [1] 256 736 277 408 471 </ code > </ pre >
404404< p > If we want to modify < code > new_rivers</ code > and save that modified version, then we need to reassign < code > new_rivers</ code > like so:</ p >
405405< pre class ="r "> < code > new_rivers <- new_rivers + 1
406406new_rivers</ code > </ pre >
407- < pre > < code > ## [1] 697 871 251 626 546 </ code > </ pre >
407+ < pre > < code > ## [1] 256 736 277 408 471 </ code > </ pre >
408408< p > 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.</ p >
409409< hr />
410410</ div >
@@ -453,7 +453,7 @@ <h2><strong>Error: object ‘X’ not found</strong></h2>
453453< p > Make sure you run something like this, with the < code > <-</ code > operator:</ p >
454454< pre class ="r "> < code > rivers2 <- new_rivers + 1
455455rivers2</ code > </ pre >
456- < pre > < code > ## [1] 698 872 252 627 547 </ code > </ pre >
456+ < pre > < code > ## [1] 257 737 278 409 472 </ code > </ pre >
457457< hr />
458458</ div >
459459< div id ="error-unexpected-in-error-unexpected-in-error-unexpected-x-in " class ="section level2 ">
Original file line number Diff line number Diff line change @@ -338,16 +338,14 @@ <h1 class="title toc-ignore"><p><img src="images/DaSEH_banner_wide_transparent.p
338338
339339
340340<!-- HTML Meta Tags -->
341- < title >
342- Data Science for Environmental Health
343- </ title >
344- < meta name ="DaSEH: NIEHS Short Course " content ="">
345- <!-- Facebook Meta Tags -->
346341< meta property ="url " content ="https://daseh.org ">
347342< meta property ="type " content ="website ">
348343< meta property ="title " content ="NIEHS-Funded Short Course: Data Science for Environmental Health ">
349- < meta property ="description " content ="">
350344< meta property ="image " content ="https://github.com/fhdsl/DaSEH/blob/main/images/DaSEH_logo_white.png?raw=true ">
345+ < meta property ="og:title " content ="NIEHS-Funded Short Course: Data Science for Environmental Health " />
346+ < meta property ="og:type " content ="website " />
347+ < meta property ="og:url " content ="https://daseh.org " />
348+ < meta property ="og:image " content ="https://github.com/fhdsl/DaSEH/blob/main/images/DaSEH_logo_white.png?raw=true " />
351349<!-- Meta Tags Generated via https://www.opengraph.xyz -->
352350< div class ="leaf ">
353351
You can’t perform that action at this time.
0 commit comments