You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/curriculum.Rmd
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -148,20 +148,18 @@ mutate()
148
148
149
149
Create a data frame that has the African values for `lifeExp`, `country`, and `year`.
150
150
151
-
152
151
### Challenge 8
153
152
154
-
1. Calculate the average life expectancy in 2002 of 2 randomly selected countries for each continent.
155
-
2. Then arrange the continent names in reverse order.
153
+
1.Calculate the average life expectancy in 2002 of 2 randomly selected countries for each continent.
154
+
2.Then arrange the continent names in reverse order.
156
155
157
156
Hint: Use the dplyr functions `arrange()` and `sample_n()`. They have similar syntax to other dplyr functions.
158
157
159
-
160
158
## Tidyverse in the wild
161
159
162
160

0 commit comments