MyNixOS website logo
Description

Cases of COVID-19 in France.

Imports and cleans 'opencovid19-fr' <https://github.com/opencovid19-fr/data> data on COVID-19 in France.

covid19france

Travis buildstatus License:MIT CRANstatus

This package provides per-day data on COVID-19 cases in France.

The data is an average over all of the sources provided by opencovid19-fr. (README in English available here.)

Installation

# install.packages("devtools")
devtools::install_github("Covid19R/covid19france")

Data

library(covid19france)

Get the full dataset:

(france <- refresh_covid19france())
#> Downloading raw data from https://raw.githubusercontent.com/opencovid19-fr/data/master/dist/chiffres-cles.csv.
#> # A tibble: 23,508 x 7
#>    date       location location_type location_standa… location_standa… data_type
#>    <date>     <chr>    <chr>         <chr>            <chr>            <chr>    
#>  1 2020-04-05 Ain      county        DEP-01           department       confirmed
#>  2 2020-04-05 Ain      county        DEP-01           department       dead     
#>  3 2020-04-05 Ain      county        DEP-01           department       icu      
#>  4 2020-04-05 Ain      county        DEP-01           department       hospital…
#>  5 2020-04-05 Ain      county        DEP-01           department       recovered
#>  6 2020-04-05 Ain      county        DEP-01           department       discover…
#>  7 2020-04-05 Aisne    county        DEP-02           department       confirmed
#>  8 2020-04-05 Aisne    county        DEP-02           department       dead     
#>  9 2020-04-05 Aisne    county        DEP-02           department       icu      
#> 10 2020-04-05 Aisne    county        DEP-02           department       hospital…
#> # … with 23,498 more rows, and 1 more variable: value <int>

To switch to a wider format, you can use tidyr:

france %>% 
  tidyr::pivot_wider(
    names_from = "data_type"
  ) %>% 
  dplyr::select(
    1, 6:ncol(.), everything()
  )
#> # A tibble: 3,918 x 11
#>    date       confirmed  dead   icu hospitalized recovered discovered location
#>    <date>         <int> <int> <int>        <int>     <int>      <int> <chr>   
#>  1 2020-04-05        NA    24    30          112        86         NA Ain     
#>  2 2020-04-05        NA   100    39          221       182         NA Aisne   
#>  3 2020-04-05        NA     8    16           45        59         NA Allier  
#>  4 2020-04-05        NA     3     7           31        44         NA Alpes-d…
#>  5 2020-04-05        NA    43    78          219       171         NA Alpes-M…
#>  6 2020-04-05        NA    26    15           93       131         NA Ardèche 
#>  7 2020-04-05        NA     4    18           73        23         NA Ardennes
#>  8 2020-04-05        NA     1     5           18        10         NA Ariège  
#>  9 2020-04-05        NA    34    23          148        27         NA Aube    
#> 10 2020-04-05        NA    27    18           95        63         NA Aude    
#> # … with 3,908 more rows, and 3 more variables: location_type <chr>,
#> #   location_standardized <chr>, location_standardized_type <chr>

For more info on the dataset:

get_info_covid19france()
#> # A tibble: 1 x 10
#>   data_set_name package_name function_to_get… data_details data_url license_url
#>   <chr>         <chr>        <chr>            <chr>        <chr>    <chr>      
#> 1 covid19france covid19fran… refresh_covid19… Open Source… https:/… https://gi…
#> # … with 4 more variables: data_types <chr>, location_types <chr>,
#> #   spatial_extent <chr>, has_geospatial_info <lgl>

Contributing

Please submit issues and pull requests with any package improvements!

Please note that the ‘covid19france’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Metadata

Version

0.1.0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows