今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Making long data sets wide
- [Instructor] While data scientists often find themselves needing to take a wide dataset and make it longer, they sometimes need to perform the reverse operation and make a long dataset wider. Earlier in this course I showed you a Mexican Weather dataset and walked you through an example of making it tidier. At one point in the process, I had the intermediate result. I had two temperature records for each weather station on each date. One row contained the maximum temperature for that date while the other contained the minimum temperature. These are really two different values, the maximum and the minimum, for the same observation, temperature over the course of the day. To make this dataset tidy, I want to combine the two rows for the same date and station into a single row. The tidier library within the tidyverse contains a function called spread that takes a long dataset and makes it wide by spreading the…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。