Description Usage Details Value Note Author(s) References See Also Examples
function for date updating
1 |
Okay
list
function for data updating
E. A. Pena
No particular reference
###
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function ()
{
library(utils)
library(httr)
GET("https://opendata.ecdc.europa.eu/covid19/casedistribution/csv",
authenticate(":", ":", type = "ntlm"), write_disk(tf <- tempfile(fileext = ".csv")))
covid19 <- read.csv(tf)
countrydata = ByCountryData(covid19)
return(countrydata)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.