Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create 6 data frames with names as indicated:
- 1. `temp_my_gather`: Use `gather()` to reshape the data frame to long format. Is this tidy data? Answer the remaining questions using `temp_my_gather`.
- 2. `city_avg_temp`: Use `group_by()` and `summarise()` to find the mean temperature for each city. Name the new column `mean_temp`.
- 3. `week_avg_temp`: Create a new column `mean_temp` with the mean temperature for each week.
- 4. `week_1_temp`: Find the mean temperature for week 1 only.
- 5. `temp_city_count`: Find the count of observations for each city.
- 6. `temp_city_summary`: Find the mean, count and standard deviation of temperature for each city.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement