From 5da748f65b416c75a09be569d02b0ea7420f15b7 Mon Sep 17 00:00:00 2001 From: carriewright11 Date: Thu, 11 Jun 2026 08:51:08 -0600 Subject: [PATCH] fixing typos --- modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd b/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd index 5898dd32..759230b9 100644 --- a/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd +++ b/modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd @@ -210,7 +210,7 @@ Renaming can: - make it easier to work with your data - make your column names more compatible with R -- make your column names more interpretable by others +- make your column names more understandable by others ## `rename` function @@ -428,7 +428,7 @@ Subsetting involves grabbing specific parts of your data to: - Produce a smaller dataset - Examine specific subsets of your data -- Use a particular part of the data for a specific analysis/visualzation +- Use a particular part of the data for a specific analysis/visualization Be cautious about removing columns/variables as you might find they are useful later. @@ -671,7 +671,7 @@ knitr::include_graphics("https://media.giphy.com/media/5b5OU7aUekfdSAER5I/giphy. https://media.giphy.com/media/5b5OU7aUekfdSAER5I/giphy.gif -## GUT CHECK: If we want to keep just rows that meet either or two conditions, what code should we use? +## GUT CHECK: If we want to keep just rows that meet either of two conditions (not both), what code should we use? A. `filter()` with `|` @@ -938,7 +938,9 @@ B. `select()` C. `mutate()` -## GUT CHECK: How would we interpret `er_30 |> filter(year > 2020) |> select(year, rate)`? +## GUT CHECK: How would we interpret the following: + +`er_30 |> filter(year > 2020) |> select(year, rate)`? A. Get the `er_30` data, then filter it for rows with `year` values over 2020, then select only the `year` and `rate` columns.