trim2mens | R Documentation |
Les fonctions trim2mens
et mens2trim
convertissent une
date_ts
du format mensuelle c(AAAA, MM)
au format trimestrielle c(AAAA, TT)
.
trim2mens(date_ts)
mens2trim(date_ts)
date_ts |
un vecteur numérique, de préférence |
En sortie, la fonction retourne la date toujours au format date_ts
.
trim2mens(c(2019L, 4L)) # 4ème trimestre 2019 --> Octobre 2019
trim2mens(c(2020L, 1L)) # 1er trimestre 2020 --> Janvier 2020
mens2trim(c(2019L, 4L)) # Avril 2019 --> 2ème trimestre 2019
mens2trim(c(2020L, 11L)) # Novembre 2020 --> 4ème trimestre 2020
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.