title: Customize the year in as.Date (in R)
body: <p>I have some dates (character string) with only month and date, for example &quot;20-May&quot;. I'm using as.Date to convert it to a date object:</p>
  <pre><code>as.Date(&quot;20-May&quot;, format = &quot;%d-%b&quot;)
  </code></pre>
  <p>What I got is: <code>&quot;2021-05-20&quot;</code>. So R automatically sets the year to the current year. But I want to customize the year to 2019 (expect the output to be <code>&quot;2019-05-20&quot;</code>). How to do that?</p>