title: Converting df into ts object and decompose in 15 minute intervals in R
body: <p>I know there has been a lot on this topic already but I can't seem to get what I want working.
  I've read:</p>
  
  <p><a href="https://stackoverflow.com/questions/29046311/how-to-convert-data-frame-into-time-series-in-r">how to convert data frame into time series in R</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8732461/convert-data-frame-with-date-column-to-timeseries">Convert data frame with date column to timeseries</a></p>
  
  <p>As well as several others but can't get it to work.</p>
  
  <p>I have the following <code>df</code></p>
  
  <pre><code>df &lt;- data.frame(CloseTime = c("2017-09-13 19:15:00","2017-09-13 19:30:00","2017-09-13 19:45:00","2017-09-13 20:00:00","2017-09-13 20:15:00"),
               OpenPice = c(271.23,269.50,269.82,269.10,269.50),
               HightPrice = c(271.23,269.50,269.82,269.10,269.50),
               LowPrice = c(271.23,269.50,269.82,269.10,269.50),
               ClosePrice = c(271.23,269.50,269.82,269.10,269.50))
  </code></pre>
  
  <p>I'd like to convert it into a <code>ts</code>object, with 15-minute intervals and decompose the time series.</p>
  
  <p>I also read that the zoo package allows you to decompose specific multiple intervals i.e. 15 mins, 1h, 1 day?</p>
  
  <p>Can someone please help. How can I convert this into a ts object and decompose my ts object?</p>