Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sakhinov case study patch #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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