Description Super class Methods
Caching and dataset management
Caching and dataset management
ukcovidtools::PassthroughFilesystemCache
-> DataProvider
new()
New provider pipeline
DataProvider$new(providerController, ...)
providerController
the provider controller
...
for compatibility
the provider
downloadAndUnzip()
DataProvider$downloadAndUnzip(id, url, pattern)
downloadAndUntar()
DataProvider$downloadAndUntar(id, url, pattern)
download()
DataProvider$download(id, url, type = "csv")
downloadDaily()
DataProvider$downloadDaily(id, url, type = "csv")
normaliseGender()
DataProvider$normaliseGender(gender, na.value = NA_character_)
normaliseAgeCat()
DataProvider$normaliseAgeCat(ageCat)
cutByAge()
DataProvider$cutByAge(age, ageBreaks = NULL)
breakFromCats()
DataProvider$breakFromCats(ageCat)
labelsFromBreaks()
DataProvider$labelsFromBreaks(ageBreaks)
ageCatToFactor()
ordered factor from age range labels
DataProvider$ageCatToFactor( ageCat, ageLabels = c("0-4", "<5", "5-9", "5-14", "10-14", "15-19", "15-24", "20-24", "25-29", "25-34", "30-34", "35-39", "35-44", "40-44", "45-49", "45-54", "50-54", "55-59", "55-64", "60-64", "65-69", "65-74", "70-74", "75-79", "75-84", "80+", "85+", "unknown") )
ageCat
- a vector of age categories as strings
ageLabels
- a vector of age range labels
an ordered factor of age categories
ageToAgeCat()
create an ordered factor of ages from a continuous age
DataProvider$ageToAgeCat( age, ageLabels = c("0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "55-59", "60-64", "65-69", "70-74", "75-79", "80+") )
age
- a vector of ages
ageLabels
- a vector of age range labels
an ordered factor of age categories
clone()
The objects of this class are cloneable with this method.
DataProvider$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.