get_data_covid19: Scrap and format data from opencovid19-fr

Description Usage Arguments Examples

View source: R/get_data_covid19.R

Description

Scrap and format data from opencovid19-fr

Usage

1
2
3
4
5
6
7
8
9
get_data_covid19(
  maille_cd = "FRA",
  source_ch = "sante-publique-france",
  date_start = NULL,
  date_end = NULL,
  metropole = FALSE,
  update_from_source_url = FALSE,
  epidemic_start = TRUE
)

Arguments

maille_cd

a character sting indicating the code

source_ch

a character string either "sante-publique-france" or "agences-regionales-sante" or "ministere-sante". Other sources are available but not so reliable...

epidemic_start

a logical indicating wehter to left-truncate data at the start of the epidemics. The start of the epidemics is the first date

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
get_data_covid19(maille_cd = "FRA",
                source_ch = "ministere-sante")

get_data_covid19(maille_cd = "DEP-33",
                source_ch = "agences-regionales-sante")

get_data_covid19(maille_cd = "REG-75",
                source_ch = "agences-regionales-sante")

get_data_covid19(maille_cd = "REG-44",
                source_ch = "agences-regionales-sante")

get_data_covid19(maille_cd = "FRA",
                source_ch = "sante-publique-france")

get_data_covid19(maille_cd = "WORLD",
                source_ch = "sante-publique-france")

sistm/SEIRcovid19 documentation built on Aug. 9, 2021, 7:37 a.m.