title: Adjust so that the week names change into an R code
body: <p>I would like to know if there is a way to rename the weekday name information in a database. I have inserted the database I want to change below.</p>
  <pre><code> df1 &lt;- structure(list(date = c(&quot;2021-06-30&quot;, &quot;2021-07-01&quot;, &quot;2021-07-02&quot;, &quot;2021-07-03&quot;,&quot;2021-07-04&quot;,&quot;2021-07-05&quot;,&quot;2021-07-06&quot;),
   Week = c(&quot;Quarta-feira&quot;, &quot;Quinta-feira&quot;, &quot;Sexta-feira&quot;, &quot;Sábado&quot;,&quot;Domingo&quot;,&quot;Segunda-feira&quot;,&quot;Terça-feira&quot;)), 
  class = &quot;data.frame&quot;, row.names = c(NA, -7L))
  </code></pre>
  <p>I would like to make the following change instead of <code>Quarta-feira</code> I would just like <code>Quarta</code>, <code>Quinta-feira</code> to <code>Quinta</code>, <code>Sexta-feira</code> to <code>Sexta</code>, <code>Segunda-feira</code> to <code>Segunda</code>, <code>Terça-feira</code> to <code>Terça</code>, <code>Sábado</code>and <code>Domingo</code> remain the same.</p>
  <p>Note: these days of the week are written in Portuguese.</p>