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( | |
., |
Dans un terminal (Mac OS / Linux)
$ mkdir fantoir
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.
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() %>% |
--- | |
title: "R Notebook" | |
output: | |
html_document: | |
df_print: paged | |
--- | |
```{r setup} | |
library(banR) | |
library(tidyverse) |
library("readxl") | |
library("dplyr") | |
read_excel("maires-17-06-2014.xlsx", skip = 1) %>% | |
glimpse() | |
# library("devtools") | |
# install_github("pachevalier/tricky") | |
library("readxl") | |
library("dplyr") | |
library("tricky") |
y : la part de vote en faveur du candiat A au second tour x_1 : la part de vote en faveur du candidat A au premier tour x_2 : la part de vote en faveur du candidat B au premier tour x_3 : la part de vote en faveur du candidat C au premier tour
On sait que
On a donc une relation de colinéarité entre les variables explicatives.