LoslegenKostenlos loslegen

Aggregating data

Aggregation is the process of reducing the sampling frequency of a time series and is important for understanding patterns within the data, allowing for cleaner visualization and interpretation. Especially if the temporal resolution is high – data sampled every hour or minute – it can be difficult to interpret the data or spot patterns, leading to a need for aggregation.

Here, you'll take a time series, hourly_temperature, containing hourly temperature readings from a town in the United States, and aggregate it to different levels.

hourly_temperature, xts, and ggplot2 are loaded for you.

Diese Übung ist Teil des Kurses

Manipulating Time Series Data in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Autoplot with a proper label
___
Code bearbeiten und ausführen