Skip to contents

Incidence2 objects

incidence()
Compute the incidence of events
incidence_()
Compute the incidence of events (tidyselect compatible)
summary(<incidence2>)
Summary of an incidence object
as_incidence()
Coerce to an incidence object

Manipulation

cumulate()
Compute cumulative 'incidence'
complete_dates()
Complete dates for all group combinations
keep_first() keep_last() keep_peaks() first_peak()
Keep first, last and peak occurences
regroup()
Regroup 'incidence' objects
regroup_()
Regroup 'incidence' objects (tidyselect compatible)

Coercion

as.data.frame(<incidence2>)
Convert incident object to a data frame
as.data.table(<incidence2>)
Coerce to a data.table
as_tibble(<incidence2>)
Coerce to a tibble

Grouping aware methods

split(<incidence2>)
Divide an incidence2 object in to it's implicit groupings
mutate(<incidence2>)
Create, modify, and delete incidence2 columns
nest(<incidence2>)
Nest rows into a list-column of data frames
summarise(<incidence2>)
Summarise each grouping down to one row

Peak estimation

bootstrap_incidence()
Bootstrap incidence time series
estimate_peak()
Estimate the peak date of an incidence curve
keep_first() keep_last() keep_peaks() first_peak()
Keep first, last and peak occurences

Accessors

Plotting

plot(<incidence2>)
Plot an incidence object
vibrant() muted()
Color palettes used in incidence

Data

covidregionaldataUK
Regional data for COVID-19 cases in the UK