Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/case-study/02-case-study-exercises.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ glimpse(df)
```


12. The "Factor_D" variable contains 15 unique values (i.e. 10, 15, 20, 21, ..., 85, 90). There is at least one single observation where `Factor_D = 26` (possibly more). Assume these observations were improperly recorded and, in fact, the value should be 25.
12. The "Factor_D" variable contains 13 unique values (i.e. 10, 15, 20, 21, ..., 70, 90). There is at least one single observation where `Factor_D = 26` (possibly more). Assume these observations were improperly recorded and, in fact, the value should be 25.

Using `ifelse()` (or __dplyr__'s `if_else()`) inside `mutate()`, recode any values where `Factor_D == 26` to be 25.

Expand Down
2 changes: 1 addition & 1 deletion docs/case-study/02-case-study-solutions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ glimpse(df)
```


12. The "Factor_D" variable contains 15 unique values (i.e. 10, 15, 20, 21, ..., 85, 90). There is at least one single observation where `Factor_D = 26` (possibly more). Assume these observations were improperly recorded and, in fact, the value should be 25.
12. The "Factor_D" variable contains 13 unique values (i.e. 10, 15, 20, 21, ..., 70, 90). There is at least one single observation where `Factor_D = 26` (possibly more). Assume these observations were improperly recorded and, in fact, the value should be 25.

Using `ifelse()` (or __dplyr__'s `if_else()`) inside `mutate()`, recode any values where `Factor_D == 26` to be 25.

Expand Down