'weekly seasonality in r with fourier terms

I've hourly data and I'd like to capture weekly seasonality in my data. How could I capture it with fourier terms in R, in order to add as regressor to my ARIMA model? Or should I consider dummy variables?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source