Description Super classes Methods
General covid processing
General covid processing
ukcovidtools::PassthroughFilesystemCache
-> ukcovidtools::DataProvider
-> CovidTimeseriesProvider
new()
New timeseries provider pipeline
CovidTimeseriesProvider$new(providerController, ...)
providerController
the provider controller
...
for compatibility
the provider
setTruncation()
CovidTimeseriesProvider$setTruncation(listDays)
trimNAs()
CovidTimeseriesProvider$trimNAs(r0Timeseries)
complete()
Take a set of timeseries and add in missing dates as NAs. Preserves source, type, statistic differences in timeseries length. intially Fills all regions to be the same length but with trim trailing NAs
CovidTimeseriesProvider$complete(covidTimeseries)
a covidTimeseriesFormat dataframe
completeAllRegions()
Take a set of timeseries and add in missing dates as NAs. Preserves source, type, statistic differences in timeseries length. intially Fills all regions to be the same length but with trim trailing NAs
CovidTimeseriesProvider$completeAllRegions(covidTimeseries)
a covidTimeseriesFormat dataframe
fillAbsent()
CovidTimeseriesProvider$fillAbsent(covidTimeseries, completeDates = FALSE)
fillAbsentAllRegions()
Take a set of regional timeseries, finds the full list of regions and the whole timeseries and fills any missing values with zero (if incidence) or the previous value (if cumulative) explicitly filling in missing values. This is suitable for use for a incidence derived from a line list where some dates and regions will not be observed
CovidTimeseriesProvider$fillAbsentAllRegions(covidTimeseries)
a covidTimeseriesFormat dataframe
fillAbsentByRegion()
Take a set of timeseries and fills any missing values with zero (if incidence) or the previous value (if cumulative) explicitly filling in zeros for missing values. This is suitable for use for a incidence derived from a line list where some dates will not be observed. It does not enforce that something has been observed in all regions.
CovidTimeseriesProvider$fillAbsentByRegion(covidTimeseries)
a covidTimeseriesFormat dataframe
fixDatesAndNames()
Take a set of timeseries and fixes any non standard names, truncates time series by truncate days. intially Fills all regions to be the same length but with trim trailing NAs
CovidTimeseriesProvider$fixDatesAndNames(covidTimeseries, truncate = NULL)
a covidTimeseriesFormat dataframe
timeseriesQA()
Check timeseries conforms
CovidTimeseriesProvider$timeseriesQA(covidTimeseries)
describeErrors()
CovidTimeseriesProvider$describeErrors(covidTimeseries, valueVar = "value")
describe()
CovidTimeseriesProvider$describe(covidTimeseries, ...)
clone()
The objects of this class are cloneable with this method.
CovidTimeseriesProvider$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.