Converting dates with "unconventional" formats
<p>I am not too great with manipulating dates in <code>R</code>, and am currently stuck on trying to convert a date that has an <em>ambiguous</em> format into a <code>Date</code> object. My dates are in the format <code>20150122</code>, for example. When I use <code>as.Date</code>, I get an error like:</p>
<p><code>d7$Search.Date &lt;- as.Date(d7$Search.Date, &quot;%y%m%d&quot;)</code></p>
<blockquote>
<p>Error in charToDate(x) :
character string is not in a standard unambiguous format</p>
</blockquote>
<p>How can I convert these currently? Thank you.</p>