From 4f2930bcd6393f74e8f6bc0f0a1a5e3449dae755 Mon Sep 17 00:00:00 2001 From: Kaija Gahm <37053323+kaijagahm@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:12:06 -0800 Subject: [PATCH 1/2] Delete episodes/2-understanding-your-code.md We decided today to delete this episode --- episodes/2-understanding-your-code.md | 64 --------------------------- 1 file changed, 64 deletions(-) delete mode 100644 episodes/2-understanding-your-code.md diff --git a/episodes/2-understanding-your-code.md b/episodes/2-understanding-your-code.md deleted file mode 100644 index cc66a9a6..00000000 --- a/episodes/2-understanding-your-code.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: "Understanding your code" -teaching: 10 -exercises: 2 ---- - -:::::::::::::::::::::::::::::::::::::: questions - -- TODO - -:::::::::::::::::::::::::::::::::::::::::::::::: - -::::::::::::::::::::::::::::::::::::: objectives - -- Describe in general terms what you want your code to do, and what it is currently doing. -- Break down your code into conceptual steps (pseudocode, or a narrative of what you're doing) -- Identify relevant variables/objects - -:::::::::::::::::::::::::::::::::::::::::::::::: - -:::::::::::::::::::::::::::::::::::::: challenge - -### Order the conceptual steps of code - -Here is a block of code that creates an example data visualization. - -```r -library(dplyr) -library(ggplot2) -fuel_efficient <- mtcars %>% - filter(mpg > 30) %>% - select(hp, mpg) -p <- ggplot(fuel_efficient, aes(x = hp, y = mpg))+ - geom_point() -p -``` - -Reorder the following conceptual steps so that they accurately reflect what this code is trying to accomplish. - -``` -A. Set up a visualization that will show the relationship between horsepower and fuel efficiency -B. Choose only the most fuel efficient cars -C. Display the plot that was just created -D. Load necessary packages -E. Simplify the dataset to show fewer columns -F. Add points to the initial plot -``` - -:::::::::::::: solution - -### Solution - -``` -D. Load necessary packages -B. Choose only the most fuel efficient cars -E. Simplify the dataset to show fewer columns -A. Set up a visualization that will show the relationship between horsepower and fuel efficiency -F. Add points to the initial plot -C. Display the plot that was just created -``` - -::::::::::::::::::::::::: - -:::::::::::::::::::::::::::::::::::::::::::::::::: From a08cc495d93e81f8a04a3cc59194a73402e6737d Mon Sep 17 00:00:00 2001 From: Kaija Gahm <37053323+kaijagahm@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:26:46 -0800 Subject: [PATCH 2/2] Update config.yaml --- config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/config.yaml b/config.yaml index 70f700b6..605cd670 100644 --- a/config.yaml +++ b/config.yaml @@ -60,7 +60,6 @@ contact: 'kgahm@ucla.edu' # Order of episodes in your lesson episodes: - 1-intro-reproducible-examples.md -- 2-understanding-your-code.md - 3-identify-the-problem.md - 4-minimal-reproducible-data.Rmd - 5-minimal-reproducible-code.md