1
I wonder if there is the format "yyyy-MES ABBREVIATED-dd"
Example:
library(tidyverse)
library(lubridate)
df<-data.frame(dt=c("1980-02-13", "1983-08-03"))
df
dt
1 1980-02-13
2 1983-08-03
I can put the abbreviated month by separating the columns:
df2<-df %>%
mutate(dt=ymd(dt),
ano=year(dt),
mes=month(dt, abbr = T, label = T))
dt ano mes
1 1980-02-13 1980 fev
2 1983-08-03 1983 ago
However, I would like to know if there is any way to generate an output of the following type:
dt
1 1980-fev-13
2 1983-ago-03
Is it possible or am I mistaken?