Skip to content

Commit 946f178

Browse files
committed
traduction
1 parent 4cebc9b commit 946f178

2 files changed

Lines changed: 80 additions & 43 deletions

File tree

vignettes/auto_metadata.Rmd

Lines changed: 79 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ args(analyse_metadata)
5959
The function arguments are as follows:
6060

6161
- `df_metadata`: a dataframe structured as specified in section \ref{sec:crea_meta}.
62-
- `df_eq_indicator` : un dataframe regroupant les équations entre les indicateurs.
62+
- `df_eq_indicator` : a dataframe of equations on indicators.
6363
- `verbose`: a variable of type `logical`. If `TRUE` he function returns a list with the different steps of the analysis; if `FALSE`, it returns only the final dataframe with the cluster indicator.
6464

6565
The `df_eq_indicator` data frame consists of three columns that must follow the format below:
@@ -141,16 +141,16 @@ cluster_id_dataframe
141141
```
142142

143143
```
144-
## cluster table_name field indicator spanning_1 spanning_2 spanning_3 hrc_spanning_1
145-
## 1 france_entreprises_2023.hrc_lettuce T10.T12.T8 france_entreprises_2023 LETTUCE HRC_NAF cj HRC_LETTUCE^h hrc_naf
146-
## 2 france_entreprises_2023.hrc_lettuce T11.T7.T9 france_entreprises_2023 LETTUCE HRC_NAF size HRC_LETTUCE^h hrc_naf
147-
## 3 france_entreprises_2023.to_pizza T1.T2 france_entreprises_2023 to_pizza HRC_NUTS size <NA> hrc_nuts
148-
## 4 france_entreprises_2023.to_pizza T3.T4.T5.T6 france_entreprises_2023 to_pizza HRC_NAF HRC_NUTS <NA> hrc_naf
149-
## hrc_spanning_2 hrc_spanning_3
150-
## 1 <NA> hrc_lettuce
151-
## 2 <NA> hrc_lettuce
152-
## 3 <NA> <NA>
153-
## 4 hrc_nuts <NA>
144+
## cluster table_name field indicator spanning_1 spanning_2 spanning_3
145+
## 1 france_entreprises_2023.hrc_lettuce T10.T12.T8 france_entreprises_2023 LETTUCE HRC_NAF cj HRC_LETTUCE^h
146+
## 2 france_entreprises_2023.hrc_lettuce T11.T7.T9 france_entreprises_2023 LETTUCE HRC_NAF size HRC_LETTUCE^h
147+
## 3 france_entreprises_2023.to_pizza T1.T2 france_entreprises_2023 to_pizza HRC_NUTS size <NA>
148+
## 4 france_entreprises_2023.to_pizza T3.T4.T5.T6 france_entreprises_2023 to_pizza HRC_NAF HRC_NUTS <NA>
149+
## hrc_spanning_1 hrc_spanning_2 hrc_spanning_3
150+
## 1 hrc_naf <NA> hrc_lettuce
151+
## 2 hrc_naf <NA> hrc_lettuce
152+
## 3 hrc_nuts <NA> <NA>
153+
## 4 hrc_naf hrc_nuts <NA>
154154
```
155155

156156
For the 12 tables to be published, it is sufficient to protect 4 tables. These tables are distributed across two different clusters. Therefore, `tab_multi_manager()` needs to be called twice.
@@ -164,8 +164,8 @@ names(detailed_analysis)
164164
```
165165

166166
```
167-
## [1] "identify_hrc" "info_var" "split_in_clusters" "create_edges" "grp_tab_names" "grp_tab_in_clusters"
168-
## [7] "tab_to_treat" "df_tab_to_treat"
167+
## [1] "identify_hrc" "info_var" "split_in_clusters" "create_edges" "grp_tab_names"
168+
## [6] "grp_tab_in_clusters" "tab_to_treat" "df_tab_to_treat"
169169
```
170170

171171
One finds the dataframe with the cluster indicator `df_tab_to_treat`. The result is the same but in list format: each element of the list is an independent cluster `tab_to_treat`. Additionally, the 6 steps of the analysis are included.
@@ -257,7 +257,8 @@ detailed_analysis <- analyse_metadata(metadata_template, verbose = TRUE)
257257
```
258258

259259
```
260-
## Error in check_column_names(df_metadata): Error: The dataframe is missing one or more required columns: table_name, field, hrc_field, indicator, hrc_indicator.
260+
## Error in `check_column_names()`:
261+
## ! Error: The dataframe is missing one or more required columns: table_name, field, hrc_field, indicator, hrc_indicator.
261262
```
262263

263264
``` r
@@ -266,7 +267,8 @@ cluster_id_dataframe <- analyse_metadata(metadata_template, verbose = FALSE)
266267
```
267268

268269
```
269-
## Error in check_column_names(df_metadata): Error: The dataframe is missing one or more required columns: table_name, field, hrc_field, indicator, hrc_indicator.
270+
## Error in `check_column_names()`:
271+
## ! Error: The dataframe is missing one or more required columns: table_name, field, hrc_field, indicator, hrc_indicator.
270272
```
271273

272274
``` r
@@ -275,16 +277,16 @@ cluster_id_dataframe
275277
```
276278

277279
```
278-
## cluster table_name field indicator spanning_1 spanning_2 spanning_3 hrc_spanning_1
279-
## 1 france_entreprises_2023.hrc_lettuce T10.T12.T8 france_entreprises_2023 LETTUCE HRC_NAF cj HRC_LETTUCE^h hrc_naf
280-
## 2 france_entreprises_2023.hrc_lettuce T11.T7.T9 france_entreprises_2023 LETTUCE HRC_NAF size HRC_LETTUCE^h hrc_naf
281-
## 3 france_entreprises_2023.to_pizza T1.T2 france_entreprises_2023 to_pizza HRC_NUTS size <NA> hrc_nuts
282-
## 4 france_entreprises_2023.to_pizza T3.T4.T5.T6 france_entreprises_2023 to_pizza HRC_NAF HRC_NUTS <NA> hrc_naf
283-
## hrc_spanning_2 hrc_spanning_3
284-
## 1 <NA> hrc_lettuce
285-
## 2 <NA> hrc_lettuce
286-
## 3 <NA> <NA>
287-
## 4 hrc_nuts <NA>
280+
## cluster table_name field indicator spanning_1 spanning_2 spanning_3
281+
## 1 france_entreprises_2023.hrc_lettuce T10.T12.T8 france_entreprises_2023 LETTUCE HRC_NAF cj HRC_LETTUCE^h
282+
## 2 france_entreprises_2023.hrc_lettuce T11.T7.T9 france_entreprises_2023 LETTUCE HRC_NAF size HRC_LETTUCE^h
283+
## 3 france_entreprises_2023.to_pizza T1.T2 france_entreprises_2023 to_pizza HRC_NUTS size <NA>
284+
## 4 france_entreprises_2023.to_pizza T3.T4.T5.T6 france_entreprises_2023 to_pizza HRC_NAF HRC_NUTS <NA>
285+
## hrc_spanning_1 hrc_spanning_2 hrc_spanning_3
286+
## 1 hrc_naf <NA> hrc_lettuce
287+
## 2 hrc_naf <NA> hrc_lettuce
288+
## 3 hrc_nuts <NA> <NA>
289+
## 4 hrc_naf hrc_nuts <NA>
288290
```
289291

290292
Ultimately, there are 6 tables to process in 3 different clusters. In other words, `tab_multi_manager()` will need to be called three times.
@@ -340,12 +342,12 @@ detailed_analysis <- analyse_metadata(metadata_pizza_lettuce,
340342

341343
```
342344
## Warning: Returning more (or less) than 1 row per `summarise()` group was deprecated in dplyr 1.1.0.
343-
## i Please use `reframe()` instead.
344-
## i When switching from `summarise()` to `reframe()`, remember that `reframe()` always returns an ungrouped data frame and adjust
345+
## Please use `reframe()` instead.
346+
## When switching from `summarise()` to `reframe()`, remember that `reframe()` always returns an ungrouped data frame and adjust
345347
## accordingly.
346-
## i The deprecated feature was likely used in the rtauargus package.
348+
## The deprecated feature was likely used in the rtauargus package.
347349
## Please report the issue at <https://github.com/inseefrlab/rtauargus/issues>.
348-
## This warning is displayed once every 8 hours.
350+
## This warning is displayed once per session.
349351
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
350352
```
351353

@@ -366,16 +368,16 @@ cluster_id_dataframe
366368
```
367369

368370
```
369-
## cluster table_name field indicator spanning_1 spanning_2 spanning_3 hrc_spanning_1
370-
## 1 france_entreprises_2023.hrc_lettuce T10.T12.T8 france_entreprises_2023 LETTUCE HRC_NAF cj HRC_LETTUCE^h hrc_naf
371-
## 2 france_entreprises_2023.hrc_lettuce T11.T7.T9 france_entreprises_2023 LETTUCE HRC_NAF size HRC_LETTUCE^h hrc_naf
372-
## 3 france_entreprises_2023.to_pizza T1.T2 france_entreprises_2023 to_pizza HRC_NUTS size <NA> hrc_nuts
373-
## 4 france_entreprises_2023.to_pizza T3.T4.T5.T6 france_entreprises_2023 to_pizza HRC_NAF HRC_NUTS <NA> hrc_naf
374-
## hrc_spanning_2 hrc_spanning_3
375-
## 1 <NA> hrc_lettuce
376-
## 2 <NA> hrc_lettuce
377-
## 3 <NA> <NA>
378-
## 4 hrc_nuts <NA>
371+
## cluster table_name field indicator spanning_1 spanning_2 spanning_3
372+
## 1 france_entreprises_2023.hrc_lettuce T10.T12.T8 france_entreprises_2023 LETTUCE HRC_NAF cj HRC_LETTUCE^h
373+
## 2 france_entreprises_2023.hrc_lettuce T11.T7.T9 france_entreprises_2023 LETTUCE HRC_NAF size HRC_LETTUCE^h
374+
## 3 france_entreprises_2023.to_pizza T1.T2 france_entreprises_2023 to_pizza HRC_NUTS size <NA>
375+
## 4 france_entreprises_2023.to_pizza T3.T4.T5.T6 france_entreprises_2023 to_pizza HRC_NAF HRC_NUTS <NA>
376+
## hrc_spanning_1 hrc_spanning_2 hrc_spanning_3
377+
## 1 hrc_naf <NA> hrc_lettuce
378+
## 2 hrc_naf <NA> hrc_lettuce
379+
## 3 hrc_nuts <NA> <NA>
380+
## 4 hrc_naf hrc_nuts <NA>
379381
```
380382

381383

@@ -387,8 +389,41 @@ The create_edges step in the metadata analysis identifies tables included within
387389
``` r
388390
library(rtauargus)
389391
library(igraph)
392+
```
393+
394+
```
395+
##
396+
## Attaching package: 'igraph'
397+
```
398+
399+
```
400+
## The following objects are masked from 'package:dplyr':
401+
##
402+
## as_data_frame, groups, union
403+
```
404+
405+
```
406+
## The following objects are masked from 'package:stats':
407+
##
408+
## decompose, spectrum
409+
```
410+
411+
```
412+
## The following object is masked from 'package:base':
413+
##
414+
## union
415+
```
416+
417+
``` r
390418
library(visNetwork)
419+
```
420+
421+
```
422+
## Error in `library()`:
423+
## ! there is no package called 'visNetwork'
424+
```
391425

426+
``` r
392427
graph_links_tab <- function(list_desc_links){
393428
list_desc_links %>% purrr::imap(function(ss_dem,i){
394429
if(!is.null(ss_dem)){
@@ -411,8 +446,10 @@ graph_links_tab(detailed_analysis$create_edges)
411446
```
412447

413448
```
414-
## $france_entreprises_2023.hrc_lettuce
415-
##
416-
## $france_entreprises_2023.to_pizza
449+
## Error in `map2()`:
450+
## ℹ In index: 1.
451+
## ℹ With name: france_entreprises_2023.hrc_lettuce.
452+
## Caused by error in `visOptions()`:
453+
## ! could not find function "visOptions"
417454
```
418455

vignettes/auto_metadata.Rmd.orig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ args(analyse_metadata)
5454
The function arguments are as follows:
5555

5656
- `df_metadata`: a dataframe structured as specified in section \ref{sec:crea_meta}.
57-
- `df_eq_indicator` : un dataframe regroupant les équations entre les indicateurs.
57+
- `df_eq_indicator` : a dataframe of equations on indicators.
5858
- `verbose`: a variable of type `logical`. If `TRUE` he function returns a list with the different steps of the analysis; if `FALSE`, it returns only the final dataframe with the cluster indicator.
5959

6060
The `df_eq_indicator` data frame consists of three columns that must follow the format below:

0 commit comments

Comments
 (0)