title: How to transform DF into Time Series object
body: <p>I am a beginner trying to learn Time Series Forecasting. I am trying to plot using "Sales of Shampoo Over a Three Year Period"
  Topic 12 hours ago in Getting Started</p>
  
  <p>Unable to transform the data frame into the TS file. Besides the unable to make the Month into an acceptable Date format  Please help</p>
  
  <pre><code>SELECT * FROM Users WHERE Id = 1;
   sales.of.shampoo.over.a.three.ye &lt;- read.csv("~/sales-of-shampoo-over-a-three-ye.csv")
  
  &gt;   View(sales.of.shampoo.over.a.three.ye)
  &gt; library(forecast)
  This is forecast 8.7 
    Need help getting started? Try the online textbook FPP:
    http://OTexts.org/fpp2/
  &gt; autoplot(sales.of.shampoo.over.a.three.ye)
  Error: Objects of type data.frame not supported by autoplot.
  &gt; library(txt)
  Error in library(txt) : there is no package called ‘txt’
  &gt; library(xts)
  Loading required package: zoo
  
  Attaching package: ‘zoo’
  
  The following objects are masked from ‘package: base’:
  
      as.Date, as.Date.numeric
  
  &gt; SH&lt;-as.xts(sales.of.shampoo.over.a.three.ye)
  Error in as.POSIXlt.character(x, tz, ...) : 
    character string is not in a standard unambiguous format
  </code></pre>
  
  <p>Wish to proceed further and draw plots.</p>