title: Weekly and Yearly Seasonality in R
body: <p>I have daily electric load data from 1-1-2007 till 31-12-2016. I use ts() function to load the data like so</p>
  
  <pre><code>ts_load &lt;- ts(data, start = c(2007,1), end = c(2016,12),frequency = 365)
  </code></pre>
  
  <p>I want to remove the yearly and weekly seasonality from my data, to decompose the data and remove the seasonality, I use the following code</p>
  
  <pre><code>decompose_load = decompose(ts_load, "additive")
  deseasonalized = ts_load - decompose_load$seasonal
  </code></pre>
  
  <p>My question is, am I doing it right? is this the right way to remove the yearly seasonality? and what is the right way to remove the weekly seasonality?</p>