title: how to slide data by time with constant width
body: <p>Can anyone help me on sliding function?
  I want to slide data by time, which is width for 1 slide is 1 day, which means have seq 1:24</p>
  <p>Let say, 1st slide start at 2018-02-21 09:00:00 and end at 2018-02-21 05:00:00 and 2 nd slide start at 2018-02-21 09:15:00 and end at 2018-02-22 09:00:00, and for 1 year data I have 730 sliding data.
  I don't know which function and package to used</p>
  <p>Can anyone please help me?</p>
  <p>this is my data frame</p>
  <p>newdf</p>
  <p>Time                       Price
  2018-02-21 09:00:00        300
  2018-02-21 09:15:00        250
  2018-02-21 09:30:00        140
  .....</p>
  <p>thank you in advance</p>