From 1f5dd6ff09dd27f60db271415c9da89dd3d8a9e4 Mon Sep 17 00:00:00 2001 From: Sarah Stevens Date: Tue, 31 Mar 2026 11:05:01 -0500 Subject: [PATCH 1/2] updating challenge still had references to the pythonc ode --- episodes/04-code-readability.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/episodes/04-code-readability.md b/episodes/04-code-readability.md index 4b41497a..66ba55d3 100644 --- a/episodes/04-code-readability.md +++ b/episodes/04-code-readability.md @@ -201,13 +201,13 @@ Let's apply this to `eva_data_analysis.R`. a. Edit the code as follows to use descriptive (and consistent) variable names: - - Change `data_f` to `input_file` - - Change data_t to output_file - - Change g_file to graph_file + - Change `data_f_file` to `input_file` + - Change `data_t_file` to `output_file` + - Change `g_file` to `graph_file` *Be sure to change all the occurrences of each variable name.* -b. What other variable names in our code would benefit from renaming? Rename these too. Hint: variables w, t, tt and ttt could also be renamed to be more descriptive. +b. What other variable names in our code would benefit from renaming? Rename these too. Hint: variables t, tt and ttt could also be renamed to be more descriptive. c. Commit your changes to your repository. Remember to use an informative commit message. @@ -234,7 +234,7 @@ c. Commit your changes to your repository. Remember to use an informative commit :::::::: solution -Updated code after renaming `data_f`, `data_t` and `g_file` as well as variables `t`, `tt` and `ttt` to be more descriptive. +Updated code after renaming `data_f_file`, `data_t_file` and `g_file` as well as variables `t`, `tt` and `ttt` to be more descriptive. ```r From 823b64b61184594e58dfd58273a0413466dd73c7 Mon Sep 17 00:00:00 2001 From: Sarah Stevens Date: Wed, 1 Apr 2026 09:27:01 -0500 Subject: [PATCH 2/2] update challenge answer to order the t variables --- episodes/04-code-readability.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/episodes/04-code-readability.md b/episodes/04-code-readability.md index 66ba55d3..141e5a70 100644 --- a/episodes/04-code-readability.md +++ b/episodes/04-code-readability.md @@ -216,18 +216,19 @@ c. Commit your changes to your repository. Remember to use an informative commit :::::::::::::::::: hint Variables `t`, `tt` and `ttt` could also be renamed to be more descriptive. - - **Change `tt` to `duration_str`**: represents a string form of the duration, indicated by "_str". - - **Change `t` to `duration_dt`**: a datetime object parsed from the string, indicated by "_dt". - - **Change `ttt` to `duration_hours`**: the duration converted into (decimal) hours. + + - **Change `t` to `duration_dt`**: a datetime object parsed from the string, indicated by "_dt". + - **Change `tt` to `duration_str`**: represents a string form of the duration, indicated by "_str". + - **Change `ttt` to `duration_hours`**: the duration converted into (decimal) hours. :::::::::::::::::::::::: Rename these too. :::::::::::::::::: hint Variables `t`, `tt` and `ttt` could also be renamed to be more descriptive. - - **Change `tt` to `duration_str`**: represents a string form of the duration, indicated by "_str". - - **Change `t` to `duration_dt`**: a datetime object parsed from the string, indicated by "_dt". - - **Change `ttt` to `duration_hours`**: the duration converted into (decimal) hours. + - **Change `t` to `duration_dt`**: a datetime object parsed from the string, indicated by "_dt". + - **Change `tt` to `duration_str`**: represents a string form of the duration, indicated by "_str". + - **Change `ttt` to `duration_hours`**: the duration converted into (decimal) hours. :::::::::::::::::::::::: c. Commit your changes to your repository. Remember to use an informative commit message.