Description Usage Arguments Value Examples
Cette fonction permet de renommer un fichier, par exemple directement produit à partir du système d'information (hospitalier), sous une forme standardisée afin de pouvoir l'importer avec pmeasyr tout en gardant optionnellement le fichier original.
1 2 3 | renomme_fichier(finess = "000000000", annee, mois, path, nom_fichier,
type_fichier, garder_original = TRUE, copie_temporaire = TRUE,
dossier_cible = path)
|
nom_fichier |
Nom du fichier original à renommer |
type_fichier |
Extension du fichier. Par exemple 'rss.txt'. |
garder_original |
Si ‘TRUE' alors le fichier original n’est pas modifié. Sinon, il est renommé. |
copie_temporaire |
Si 'TRUE' alors le fichier renommé est copié dans un répertoire temporaire. Si 'FALSE', alors le nouveau fichier est Cet argument est pris en compte que si garder_original == TRUE est valable. |
dossier_cible |
Dossier où la copie renommée du fichier doit être enregistré. Valable que si garder_original == TRUE. |
Chemin vers le fichier renommé.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
library(pmeasyr)
# classique
renomme_fichier(annee = 2019,
mois = 12,
path = '~/Documents/data/mco/',
nom_fichier = 'monrss.txt',
type_fichier = 'rss.txt',
garder_original = TRUE)
# avec noyau de paramètres
p <- noyau_pmeasyr(
finess = '123456789',
annee = 2019,
mois = 12,
path = '~/Documents/data/mco',
tolower_names = TRUE,
lib = FALSE,
progress = FALSE
)
renomme_fichier(p,
nom_fichier = 'monrss.txt',
type_fichier = 'rss.txt',
garder_original = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.