ComeçarComece de graça

Temporal attributes and decimal dates

The temporal attributes of a time series – start, end, and frequency – are valuable in understanding how the time series was sampled.

For example, the start and end points help determine the duration of your data. The frequency determines how often the data were sampled. A time series regularly sampled each month would have a frequency of 12; there are 12 months per year.

Often, dates are stored as decimal dates (e.g., 2019.125), which are useful when the time series was sampled, for example, exactly 100 times in a year.

Converting decimal dates to human-legible dates is an important step in time series analysis, especially when you're presenting data to others.

The maunaloa time series and the zoo and lubridate packages are available to you.

Este exercício faz parte do curso

Manipulating Time Series Data in R

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício