Skip to content
example.Rmd 2.24 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

To install the library: # source stuff

```{r cars}
summary(cars)
```

# Available everywhere with the interoperability plateform (i14y)

## Code list

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


## Content Creation

```{r content_creation, echo=FALSE}
get_content_configuration()
```

```{r content_creation_identifier, echo=FALSE}
get_identifier_content(identifier='HCL_CH_ISCO_19_PROF')
```

## Dataset

```{r , echo=FALSE}
Pauline Maury Laribière's avatar
Pauline Maury Laribière committed
res <- get_dataset_description(identifier='HCL_NOGA', language='de')
res
```

```{r , echo=FALSE}
get_dataset_information(identifier='HCL_NOGA', language='de')
```

## 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(
  'prop1'= list("string"),
  'prop2' = list("string", "string2")
)
```


```{r , echo=FALSE}
get_nomenclature_path_nodes(identifier='HCL_CH_ISCO_19_PROF', path='.', filters=my_filters)
```

```{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)
```

```{r , echo=FALSE}
query_nomenclature(identifier='HCL_CH_ISCO_19_PROF', query='SELECT *', page_number=5, page_size=2, filters=my_filters)
```


# Available only internally (Intern to confederation or via VPN)

## Agent

```{r , echo=FALSE}
dcat_list_all_agents()
```

```{r , echo=FALSE}
dcat_get_agent_from_id(agent_id='xx')
```


## Dataset

```{r , echo=FALSE}
dcat_list_all_datasets()
```

```{r , echo=FALSE}
dcat_get_distributions_from_dataset_id(dataset_id='xx')
```

```{r , echo=FALSE}
dcat_get_dataset_from_id(dataset_id='xx')
```

```{r , echo=FALSE}
dcat_get_dataset_from_identifier(identifier='xx')
```

```{r , echo=FALSE}
dcat_get_distributions_from_dataset_identifier(identifier='xx')
```

## Distributions

```{r , echo=FALSE}
dcat_list_all_distributions()
```

```{r , echo=FALSE}
dcat_get_distribution_from_id(distribution_id='xx')
```