Technical requirements
There are a few technical requirements for this chapter. Note that the code for this chapter can be found at https://github.com/PacktPublishing/Extending-Excel-with-Python-and-R/tree/main/Chapter%2010.
Some of the packages that we will be using in this chapter are as follows:
healthyR.ts
forecast
timetk
Modeltime
prophet (
for Python)
keras
tensorflow
We will start by creating time series objects in base R. The basic object class for a time series object in R is ts
and objects can be coerced to that object by either using the ts()
function directly or calling as.ts()
on an object such as a vector.