Dans un terminal (Mac OS / Linux)
$ mkdir fantoir
library(tidyverse) | |
# Source https://www.douane.gouv.fr/la-douane/opendata?f%5B0%5D=categorie_opendata_facet%3A459&recherche_opendata=&op= | |
# https://www.douane.gouv.fr/sites/default/files/2022-03/14/202201-stat-national-ce-import.zip | |
"data/stat-national-ce-import/Libelle_PAYS.txt" %>% | |
read_csv2() | |
"data/stat-national-ce-import/NATIONAL_NC8PAYSI.txt" %>% | |
read_csv2( | |
., |
library(tidyverse) | |
# Source https://www.douane.gouv.fr/la-douane/opendata?f%5B0%5D=categorie_opendata_facet%3A459&recherche_opendata=&op= | |
# https://www.douane.gouv.fr/sites/default/files/2022-03/14/202201-stat-national-ce-import.zip | |
"data/stat-national-ce-import/Libelle_PAYS.txt" %>% | |
read_csv2() | |
"data/stat-national-ce-import/NATIONAL_NC8PAYSI.txt" %>% | |
read_csv2( | |
., |
library("tidyverse") | |
library("tricky") | |
library("httr") | |
library("jsonlite") | |
read_csv2("index-egalite-fh.csv") %>% | |
set_standard_names() %>% | |
glimpse() | |
read_csv2("index-egalite-fh.csv") %>% | |
set_standard_names() %>% |
Dans un terminal (Mac OS / Linux)
$ mkdir fantoir
# This script is quick and dirty code. It is very preliminary and may be improved one day ;) | |
library("jsonlite") | |
library("tidyverse") | |
library("httr") | |
library("WikidataR") | |
paste0( | |
"https://www.wikidata.org/w/api.php?action=wbgetentities&", | |
"ids=Q6581097|Q6581072", | |
"&languages=fr&props=labels&format=json" |
En application de la loi n°2019-828 du 6 août 2019 :
doivent publient annuellement la somme des 10 plus grosses rémunérations brutes, le nombre de femmes et le nombre d'hommes concernés.
--- | |
title: "Tuto Avionic" | |
output: html_notebook | |
--- | |
```{r setup} | |
library("tidyverse") | |
source(file = "fonctions.R") | |
source(file = "contenus.R") | |
source(file = "variation_df.R") |
library("tidyverse") | |
library("tricky") | |
library("hrbrthemes") | |
url <- "https://static.data.gouv.fr/resources/budget-de-la-cnil-1/20200706-112019/opencnil-budget-depuis-2000.csv" | |
read_csv2(file = url) %>% | |
filter(is.na(Année) == FALSE) %>% | |
pivot_longer(-Année, names_to = "year") %>% | |
rename(budget = Année) %>% |
library(yaml) | |
library(httr) | |
library(tidyverse) | |
library(magrittr) | |
library(lubridate) | |
library(ggthemes) | |
GET("https://raw.githubusercontent.com/opencovid19-fr/data/master/sante-publique-france/2020-03-04.yaml") %>% | |
content() %>% | |
yaml.load() %>% |