title: Hierarchical Time Series in R - Creating nodes (HTS)
body: <p>Currently my data is in the following
  <a href="https://i.stack.imgur.com/a0vTf.png" rel="nofollow noreferrer">Data Frame</a></p>
  <p>I am trying to create a hierarchal forecast model and one of the first things I need to do is create nodes for it to roll up appropriately</p>
  <p>I have converted it to a time series doing the following below</p>
  <p><code>myts &lt;- ts(df,start = c(2014,1),end = c(2022,5),frequency = 12)</code>.</p>
  <p>I want my two columns &quot;exi&quot; and &quot;new&quot; to be on the same level (level 1) and roll up to total. Though I am having issues understanding the structure on how to do that when using characters.</p>
  <pre><code>y &lt;- hts(myts, characters = c(3,0) )
  </code></pre>
  <p>In this case, how would I specify the level and the number of nodes on the level?</p>