manage RPG
Management of RPG database
RPG is a DB that describes the usage of agricultural plots in France organization for France. It is maintained by ASP with the help of IGN for distribution. In 2022, its version is 2. It has different version
- RPG niveau 1 that is a distributed by IGN
- RPG niveau 2 that is a distributed by ASP, with a need to ask for it (and justify why). It has some more informations that allow to group plots by farms.
RPG niveau 1 can be downloaded from IGN or from data.cquest :
- https://geoservices.ign.fr/rpg gives the link to archive for IGN, but not to old year versions.
- https://data.cquest.org/ign/adminexpress/ gives the link to archive without restriction in terms of date (but it does not have the last one). Normally the archives have exactly the same name as for IGN.
Functions/dataset to be added
-
download_rpg - description download the data from official repository (and data.cquest as it is by far more reliable...)
- adaptation of download.rpg
- use new journal (add_log_info)
- output archive in original version
-
adapt_rpg - description format the data from official repository in aimed data based on scheme_rpg_1 or scheme_rpg_2 depending on version
- adaptation of adapt_rpg
- use new journal (add_log_info)
- output: archive in formatted version
- intégrer le travail de @maxime.modjeska #25 (comment 77315)
-
scheme_rpg_1 and scheme_rpg_2 - description global data to be used for formatting data
- verification of what has already be done
- intégrer le travail de @maxime.modjeska #25 (comment 75728)
-
analyse_rpg - description some analyses to be performed after downloading and formatting.
- This should be based on a simplification of what @maxime.modjeska has done in Cafrua. #25 (comment 75379)
-
vignettes/rpg_fr - description presentation of the data in French
- should be completed.
-
vignettes/rpg_en - description presentation of the data in French
- should be a translation of rpg_fr, when it is done.
For each function/dataset. Please follow this procedure
-
creation of function
-
code of function -
documentation of function -
example for function -
test for function
-
-
creation of dataset
-
script for creation of "raw" data (if needed) -
storage of raw data in ascii format, normally in inst/extdata -
script in to maintain data in /data-raw -
documentation of data
-