Created
November 29, 2022 03:54
-
-
Save denisGustin/dd58aafb4557ba7fb32f5e3836b24c2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(refpmsi) | |
library(dplyr) | |
# version cim_lib minimale avec code et libellé CIM-10 | |
cim <- refpmsi::refpmsi("cim") | |
cim_lib <- cim %>% | |
dplyr::select(cim_code,cim_lib,annee_pmsi) %>% | |
dplyr::group_by(cim_code) %>% | |
dplyr::arrange(desc(annee_pmsi), by_groups = TRUE) %>% | |
dplyr::filter(dplyr::row_number() == 1) %>% | |
dplyr::ungroup() %>% | |
dplyr::select(cim_code,cim_lib) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment