Description Usage Arguments Details Value Examples
Read Santé Publique France data
1 |
file |
which file to read |
This function reads one the files described at https://www.data.gouv.fr/fr/datasets/donnees-hospitalieres-relatives-a-lepidemie-de-covid-19/ and do some cleaning.
A data frame
1 2 3 4 5 6 7 8 9 10 | covid <- read.spf("nouveaux")
covid <- agg(covid, 3:6, 2)
covid$rolling_hosp <- rolling.mean(covid$incid_hosp, 7, "right")
covid$rolling_rea <- rolling.mean(covid$incid_rea, 7, "right")
covid$rolling_dc <- rolling.mean(covid$incid_dc, 7, "right")
covid$rolling_rad <- rolling.mean(covid$incid_rad, 7, "right")
plot(covid$jour, covid$incid_dc, type = "h")
lines(covid$jour, covid$rolling_dc, col = "red", lwd = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.