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.
df1 <- structure(list(date = c("2021-06-30", "2021-07-01", "2021-07-02", "2021-07-03","2021-07-04","2021-07-05","2021-07-06"),
Week = c("Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado","Domingo","Segunda-feira","Terça-feira")),
class = "data.frame", row.names = c(NA, -7L))
I would like to make the following change instead of Quarta-feira I would just like Quarta,Quinta-feira to Quinta, Sexta-feira to Sexta, Segunda-feira to Segunda, Terça-feira to Terça. Sábado and Domingo remain the same.
Note: these days of the week are written in Portuguese.