เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Viewing sports trends

Now that you've manipulated and subsetted your sports data in a number of ways, it's time to step back and consider some trends in the data. The plot on the right shows the cumulative win/loss averages of the Boston Red Sox in the 2015 MLB season and the Boston Bruins in the 2015-2016 NHL season.

Which team had the highest win/loss average at the end of their respective season?

Two xts objects, redsox_2015 and bruins_2015 are available in your workspace. These objects contain the dates of each game played in each season, along with the cumulative win/loss average as of each game (stored in the win_loss column of each object). You can explore these objects using commands such as summary(), structure(), periodicity(), head(), or tail(), or by subsetting.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Case Study: Analyzing City Time Series Data in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง

เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา

เริ่มแบบฝึกหัด