title: Time Series and Prediction in R
body: <p>Sorry if this question seems so basic but the examples I see online are too complex for a beginner like me so please help me through this. Basically, I want to predict when is a <code>Measurement</code> high and low based on the data. Below is a part of the dataset I have. The full picture is a <strong>10-day with 30-minute interval</strong>.</p>
  
  <pre><code>       Datetime            Measurement
  1    4/4/2013 11:59              0.532
  2    4/4/2013 12:29              0.647
  3    4/4/2013 12:59              0.564
  4    4/4/2013 13:29              0.425
  5    4/4/2013 13:59              0.253
  </code></pre>
  
  <p>I tried the following to convert the <code>Datetime</code> column to a <code>Datetime</code> type</p>
  
  <pre><code>data$Datetime &lt;- strptime(x = as.character(data$Datetime),
                                   format = "%m/%d/%Y %H:%M")
  </code></pre>
  
  <p>which resulted to</p>
  
  <pre><code>           Datetime            Measurement
  1   2013-04-04 11:59:00              0.532
  2   2013-04-04 12:29:00              0.647
  3   2013-04-04 12:59:00              0.564
  4   2013-04-04 13:29:00              0.425
  5   2013-04-04 13:59:00              0.253
  </code></pre>
  
  <p>I've stumbled upon <a href="http://www.analyticsvidhya.com/blog/2015/12/complete-tutorial-time-series-modeling/" rel="nofollow">this</a> and maybe it's necessary to convert the <code>data frame</code> to a <code>time series</code>. I tried the <code>ts</code> and <code>xts</code> but I think I'm going nowhere. I also tried </p>
  
  <pre><code>library(timeSeries)
  as.timeSeries(data)
  </code></pre>
  
  <p>but then it says <code>data.frame</code> after I performed <code>class(data)</code>.</p>
  
  <p>How can I <strong>convert</strong> it to a <code>time series</code> given the situation? Can I make the link my basis and will the <strong>ARIMA</strong> model make sense? Or are there simpler and reasonable <strong>time series analysis algorithms</strong> out there that can be done?</p>
  
  <p>Please and thank you very much.</p>