From bbf234062eef49bd7be10540e37eb4ead0cd2359 Mon Sep 17 00:00:00 2001
From: Dorchies David <david.dorchies@inrae.fr>
Date: Tue, 28 Dec 2021 12:01:14 +0100
Subject: [PATCH] docs: minor changes

---
 R/get_indicateurs_services.R |  5 +--
 README.Rmd                   |  1 -
 README.md                    | 77 ++++++++++++++++++++++++++++--------
 3 files changed, 62 insertions(+), 21 deletions(-)

diff --git a/R/get_indicateurs_services.R b/R/get_indicateurs_services.R
index a363c18..4af3ad3 100644
--- a/R/get_indicateurs_services.R
+++ b/R/get_indicateurs_services.R
@@ -1,9 +1,8 @@
-#' Retrieve performance indicators from drinking water supply and sanitation services at commune level
+#' Retrieve data from API "Indicateurs des services"
 #'
 #' @description
-#' Available endpoints are:
 #'
-#' -
+#' Retrieve performance indicators collected in drinking water and sanitation services in France.
 #'
 #' See [get_available_params] and the API documentation for available filter parameters: \url{https://hubeau.eaufrance.fr/page/api-indicateurs-services}
 #'
diff --git a/README.Rmd b/README.Rmd
index b4fe110..a856a8b 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -43,7 +43,6 @@ library(hubeau)
 
 See the package documentation by typing:
 
-
 ```r
 ?hubeau
 ```
diff --git a/README.md b/README.md
index 6568df6..d1a7562 100644
--- a/README.md
+++ b/README.md
@@ -44,30 +44,73 @@ Each function is documented with at least one example:
 
 ``` r
 example("get_prelevements_chroniques")
-#>
-#> gt_pr_> # For retrieving the withdrawal time series of the devices located in Romilly-sur-Seine
+#> 
+#> gt_pr_> # Retrieve the withdrawal points located in Romilly-sur-Seine
+#> gt_pr_> get_prelevements_points_prelevement(list(code_commune_insee = "10323"))
+#> # A tibble: 9 x 28
+#>   code_point_prelevement nom_point_prelevem~ date_exploitatio~ date_exploitatio~
+#>   <chr>                  <chr>               <chr>             <lgl>            
+#> 1 PTP000000000047369     <NA>                1987-01-01        NA               
+#> 2 PTP000000000047370     <NA>                1987-01-01        NA               
+#> 3 PTP000000000053334     SCEA FERME DES HAU~ 1992-01-01        NA               
+#> 4 PTP000000000054886     <NA>                2018-03-16        NA               
+#> 5 PTP000000000054887     <NA>                2006-09-28        NA               
+#> 6 PTP000000000233572     <NA>                1987-01-01        NA               
+#> 7 PTP000000000434018     <NA>                2016-06-24        NA               
+#> 8 PTP000000000762434     <NA>                2012-12-31        NA               
+#> 9 PTP000000000788799     <NA>                1900-01-01        NA               
+#> # ... with 24 more variables: code_type_milieu <chr>,
+#> #   libelle_type_milieu <chr>, code_nature <chr>, libelle_nature <chr>,
+#> #   lieu_dit <lgl>, commentaire <lgl>, code_commune_insee <chr>,
+#> #   nom_commune <chr>, code_departement <chr>, libelle_departement <chr>,
+#> #   code_entite_hydro_cours_eau <lgl>, uri_entite_hydro_cours_eau <lgl>,
+#> #   code_entite_hydro_plan_eau <lgl>, uri_entite_hydro_plan_eau <lgl>,
+#> #   code_zone_hydro <chr>, uri_zone_hydro <chr>, code_mer_ocean <lgl>, ...
+#> 
+#> gt_pr_> # Retrieve the withdrawal devices located in Romilly-sur-Seine
+#> gt_pr_> get_prelevements_ouvrages(list(code_commune_insee = "10323"))
+#> # A tibble: 9 x 27
+#>   code_ouvrage  nom_ouvrage   id_local_ouvrage date_exploitati~ date_exploitati~
+#>   <chr>         <chr>         <chr>            <chr>            <lgl>           
+#> 1 OPR0000032603 ROMILLY SUR ~ 02612X1004/PAEP~ 1987-01-01       NA              
+#> 2 OPR0000032604 ROMILLY SUR ~ 02612X1011/FAEP~ 1987-01-01       NA              
+#> 3 OPR0000038567 SCEA FERME D~ BSS95456G_018    1992-01-01       NA              
+#> 4 OPR0000040119 S.N.C.F       BSS00593V_018    2018-03-16       NA              
+#> 5 OPR0000040120 S.N.C.F       BSS00594W_018    2006-09-28       NA              
+#> 6 OPR0000199638 SCEA FERME D~ BSS95455F_018    1987-01-01       NA              
+#> 7 OPR0000333915 Soc des Carr~ 32055_017        2016-06-24       NA              
+#> 8 OPR0000586224 SCEA DU MERI~ BSS95299L_018    2012-12-31       NA              
+#> 9 OPR0000608675 CRBPE ROMILL~ 31132_018        1900-01-01       NA              
+#> # ... with 22 more variables: code_precision_coord <chr>,
+#> #   libelle_precision_coord <chr>, commentaire <lgl>, code_commune_insee <chr>,
+#> #   nom_commune <chr>, code_departement <chr>, libelle_departement <chr>,
+#> #   code_type_milieu <chr>, libelle_type_milieu <chr>,
+#> #   code_entite_hydro_cours_eau <chr>, uri_entite_hydro_cours_eau <chr>,
+#> #   code_entite_hydro_plan_eau <lgl>, uri_entite_hydro_plan_eau <lgl>,
+#> #   code_mer_ocean <lgl>, ressource_cont_non_referencee <lgl>, ...
+#> 
+#> gt_pr_> # Retrieve the withdrawal time series of the devices located in Romilly-sur-Seine
 #> gt_pr_> get_prelevements_chroniques(list(code_commune_insee = "10323"))
-#> # A tibble: 36 x 23
+#> # A tibble: 41 x 23
 #>    code_ouvrage  annee volume code_usage libelle_usage code_statut_volume
-#>    <chr>         <int>  <dbl> <chr>      <chr>         <chr>
-#>  1 OPR0000032603  2012 617624 AEP        EAU POTABLE   1
-#>  2 OPR0000032603  2013 463545 AEP        EAU POTABLE   1
-#>  3 OPR0000032603  2014 535557 AEP        EAU POTABLE   1
-#>  4 OPR0000032603  2015 541785 AEP        EAU POTABLE   1
-#>  5 OPR0000032603  2016 478938 AEP        EAU POTABLE   1
-#>  6 OPR0000032603  2017 402363 AEP        EAU POTABLE   1
-#>  7 OPR0000032603  2018 402383 AEP        EAU POTABLE   1
-#>  8 OPR0000032604  2012 617624 AEP        EAU POTABLE   1
-#>  9 OPR0000032604  2013 463545 AEP        EAU POTABLE   1
-#> 10 OPR0000032604  2014 535557 AEP        EAU POTABLE   1
-#> # ... with 26 more rows, and 17 more variables: libelle_statut_volume <chr>,
+#>    <chr>         <int>  <dbl> <chr>      <chr>         <chr>             
+#>  1 OPR0000032603  2012 617624 AEP        EAU POTABLE   1                 
+#>  2 OPR0000032603  2013 463545 AEP        EAU POTABLE   1                 
+#>  3 OPR0000032603  2014 535557 AEP        EAU POTABLE   1                 
+#>  4 OPR0000032603  2015 541785 AEP        EAU POTABLE   1                 
+#>  5 OPR0000032603  2016 478938 AEP        EAU POTABLE   1                 
+#>  6 OPR0000032603  2017 402363 AEP        EAU POTABLE   1                 
+#>  7 OPR0000032603  2018 402383 AEP        EAU POTABLE   1                 
+#>  8 OPR0000032604  2012 617624 AEP        EAU POTABLE   1                 
+#>  9 OPR0000032604  2013 463545 AEP        EAU POTABLE   1                 
+#> 10 OPR0000032604  2014 535557 AEP        EAU POTABLE   1                 
+#> # ... with 31 more rows, and 17 more variables: libelle_statut_volume <chr>,
 #> #   code_qualification_volume <chr>, libelle_qualification_volume <chr>,
 #> #   code_statut_instruction <chr>, libelle_statut_instruction <chr>,
 #> #   code_mode_obtention_volume <chr>, libelle_mode_obtention_volume <chr>,
 #> #   prelevement_ecrasant <lgl>, producteur_donnee <chr>, longitude <dbl>,
 #> #   latitude <dbl>, code_commune_insee <chr>, nom_commune <chr>,
-#> #   code_departement <chr>, libelle_departement <chr>, nom_ouvrage <chr>,
-#> #   uri_ouvrage <chr>
+#> #   code_departement <chr>, libelle_departement <chr>, nom_ouvrage <chr>, ...
 ```
 
 ## Acknowledgement
-- 
GitLab