-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
77 lines (57 loc) · 1.86 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
warning = FALSE
)
```
# covid19france
<!-- badges: start -->
[![Travis build status](https://travis-ci.org/Covid19R/covid19france.svg?branch=master)](https://travis-ci.org/Covid19R/covid19france)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![CRAN status](https://www.r-pkg.org/badges/version/covid19france)](https://CRAN.R-project.org/package=covid19france)
<!-- badges: end -->
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](https://github.com/opencovid19-fr/data). (README in English available [here](https://github.com/opencovid19-fr/data/blob/master/README.en.md).)
## Installation
From CRAN:
``` r
install.packages("covid19france")
```
or the development version:
``` r
# install.packages("devtools")
devtools::install_github("Covid19R/covid19france")
```
## Data
```{r example}
library(covid19france)
```
Get the full dataset:
```{r}
(france <- refresh_covid19france())
```
To switch to a wider format, you can use `tidyr`:
```{r}
france %>%
tidyr::pivot_wider(
names_from = "data_type"
) %>%
dplyr::select(
1, 6:ncol(.), everything()
)
```
For more info on the dataset:
```{r}
get_info_covid19france()
```
## Contributing
Please submit [issues](https://github.com/Covid19R/covid19france/issues) and [pull requests](https://github.com/Covid19R/covid19france/pulls) with any package improvements!
Please note that the 'covid19france' project is released with a
[Contributor Code of Conduct](https://github.com/Covid19R/covid19france/blob/master/CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.