Skip to content
example.Rmd 1.03 KiB
Newer Older
---
title: "Examples R Markdown"
author: "Pauline Maury Laribière"
date: "21/10/2021"
output: html_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

# Installation

You can install the library with
devtools::install_github("SDCC/metadata-auto-r-library")
then at the beginning of your R script, you will need to 
```{r library}
library("metadata-auto-r-library")
# Available everywhere with the interoperability plateform (i14y)

## Code list

```{r codelist, echo=FALSE}
get_codelist(identifier='CL_NOGA_SECTION', language='de')
Pauline Maury Laribière's avatar
Pauline Maury Laribière committed
my_filters <- hash::hash(
Pauline Maury Laribière's avatar
Pauline Maury Laribière committed
  'AF_ACTIVE'= list("0"),
  'AFC_ISCO_REDUCED_LIST' = list("1")
res <- get_nomenclature_one_level(identifier='HCL_CH_ISCO_19_PROF', filters=my_filters, level_number=2, language='fr')
names(res)
res <- get_nomenclature_multiple_levels(identifier='HCL_CH_ISCO_19_PROF', filters=my_filters, level_from=2, level_to=5, language='de')
res