Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Create 6 data frames with names as indicated:
  2. 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`.
  3. 2. `city_avg_temp`: Use `group_by()` and `summarise()` to find the mean temperature for each city. Name the new column `mean_temp`.
  4. 3. `week_avg_temp`: Create a new column `mean_temp` with the mean temperature for each week.
  5. 4. `week_1_temp`: Find the mean temperature for week 1 only.
  6. 5. `temp_city_count`: Find the count of observations for each city.
  7. 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