Manipulating Time Series Data in R
Harrison Brown
Graduate Researcher in Geography
Temporal attributes can be used to:
Key temporal attributes:
start(AirPassengers)
[1] 1949 1
Key temporal attributes:
end(ftse)
[1] 1998.646
numeric
)end(ftse) %>%
lubridate::date_decimal()
[1] "1998-08-24 20:18:27 UTC"
Key temporal attributes:
frequency(monthly_data)
[1] 12
frequency(weekly_data)
[1] 52.14286
frequency(ftse)
[1] 260
ftse
1991.4962 2443.6
1991.5 2460.2
1991.5038 2448.2
1991.5077 2470.4
1991.5115 2484.7
1991.5154 2466.8
...
Date
/POSIXct
dataManipulating Time Series Data in R