Skip to content

Commit

Permalink
elaborate in vignette how internal conversion tables can be accessed …
Browse files Browse the repository at this point in the history
…and used
  • Loading branch information
AAoritz committed Mar 12, 2024
1 parent 5af7b8f commit 89c84e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
nuts: nuts.html
last_built: 2024-03-12T15:01Z
last_built: 2024-03-12T15:23Z
urls:
reference: https://aaoritz.github.io/nuts/reference
article: https://aaoritz.github.io/nuts/articles
Expand Down
9 changes: 6 additions & 3 deletions vignettes/nuts.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -771,16 +771,19 @@ To keep track of these changes, the `nuts` package uses two data sets:

They are based on [data provided by the JRC](https://urban.jrc.ec.europa.eu/nutsconverter/#/). Both data sets can also be used by the user manually to explore specific conversion patterns more closely.

For Norway going from version 2016 to 2021, the `cross_walks` look as follows:

```{r, echo=FALSE, message = FALSE, warning = FALSE}
For Norway going from version 2016 to 2021 at NUTS level 2, the `cross_walks` can be easily subset as follows:

```{r}
no_walks <- cross_walks %>%
filter(nchar(from_code) == 4,
from_version == 2016,
to_version == 2021,
grepl("^NO", from_code))
```

Which results in the following conversion table:

```{r, echo=FALSE, message = FALSE, warning = FALSE}
kable(no_walks, "html") %>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed", "responsive")) %>%
column_spec(1, background = 'azure') %>%
Expand Down

0 comments on commit 89c84e3

Please sign in to comment.