Skip to content
example.Rmd 1.02 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
Pauline Maury Laribière's avatar
Pauline Maury Laribière committed
install.packages("fso.metadata")
then at the beginning of your R script, you will need to 
```{r library}
Pauline Maury Laribière's avatar
Pauline Maury Laribière committed
library("fso.metadata")
# Available everywhere with the interoperability plateform (i14y)

## Code list

```{r codelist, echo=FALSE}
get_codelist(identifier='CL_NOGA_SECTION')
```


## Data Structure

```{r , echo=FALSE}
get_data_structure(identifier='HCL_NOGA', language='it')
```

## Nomenclature
```{r , echo=FALSE}
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")
)
```


```{r , echo=FALSE}
get_nomenclature_one_level(identifier='HCL_CH_ISCO_19_PROF', filters=my_filters, level_number=2)
```

```{r , echo=FALSE}
get_nomenclature_multiple_levels(identifier='HCL_CH_ISCO_19_PROF', filters=my_filters, level_from=2, level_to=5)
```