Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • floodam-data floodam-data
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

La forge institutionnelle d'INRAE étant en production depuis le 10 juin 2025, nous vous recommandons d'y créer tous vos nouveaux projets.

  • flood-appraisal
  • floodamfloodam
  • floodam-datafloodam-data
  • Issues
  • #22
Closed
Open
Issue created Dec 20, 2022 by Grelot Frederic@frederic.grelot🏊🏿Owner

manage BAN

Management of BAN database

BAN is a DB that describes addresses in France, with also lon-lat coordinates. It has 2 formats, one named BAN with one position per adress, another names BAL with several positions per address. Both formats are continuously updated. They can be downloaded in their last version from data.gouv.fr :

  • https://adresse.data.gouv.fr/data/ban/adresses/latest/csv
  • https://adresse.data.gouv.fr/data/ban/adresses/latest/csv-bal

Functions/dataset to be added

  • download_ban
    • description download the data from official repository (and maybe cquest if available)
    • output archive in original version
  • adapt_ban
    • description format the data from official repository in aimed data based on scheme_ban (and scheme_bal if to be done)
    • output: archive in formatted version
    • adaptation needed for used of analyse_archive to get useful information on archive from its name and path
  • scheme_ban
    • description global data to be used for formatting data
  • analyse_ban
    • description some analyses to be performed after downloading and formatting. At least:
      • new addresses given
      • old addresses dismissed
      • possible incoherence (to be defined)
  • vignettes/admin_express_fr.Rmd
    • description presentation of the data in French
    • complete what has already be done
  • vignettes/admin_express_en.Rmd
    • description presentation of the data in English
    • translate admin_express_fr when it is done.
  • analyse _archive
    • description need a option origin = "ban" that analyses archives of type 'ban' or 'bal
    • output: information for archives of type 'ban' or 'bal'
    • need to pass a path to the function, not only the name, as some informations (date) are included only in the path
    • need to check that original archives are stored in the same way as in data.gouv.fr for the function can analyze both external and local paths.

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
Edited Jan 03, 2023 by Grelot Frederic
Assignee
Assign to
Time tracking