Next steps - II
Your temperature data revealed a few potential avenues for exploring the causes of flight delays and cancellations. However, your client is insisting that flight arrival patterns in Boston are influenced by visibility and wind, not temperature. Before moving forward, you'll need to collect more data.
After conducting extensive research, you've identified some relevant data on weekly average visibility and wind speed in the Boston area. Which of the following steps would you take before merging these data with your existing monthly xts object, flights_temps
?
- Encode the data to an xts object with a time-based index.
- Convert the data to monthly periodicity using
to.period()
with the first observation per week. - Make sure each data object has only a single column of information.
- Convert the data to monthly periodicity using
split()
andlapply()
to generate monthly averages. - Check the periodicity and duration of your xts objects before using
merge()
. - Remove the existing temperature information from
flights_temps
before usingmerge()
.
This exercise is part of the course
Case Study: Analyzing City Time Series Data in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
