Multiply by transposing rows by date in R : I want to convert this table :

[![enter image description here][1]][1]


to that table with **R**

[![enter image description here][2]][2]

In brief : converting the time periods between start date and end date to months table vertically

Thanks!


  [1]: https://i.stack.imgur.com/7s8SQ.png
  [2]: https://i.stack.imgur.com/rXYbp.png