Learn R Programming

incidence2 is an R package that implements functions and classes to compute, handle and visualise incidence from linelist data. It refocusses the scope of the original incidence package. Unlike the original package, incidence2 concentrates only on the initial calculation, manipulation and plotting of the resultant incidence objects.

Installing the package

You can install the latest release of incidence2 from CRAN with:

install.packages("incidence2")

Vignettes

A detailed introduction to incidence2 can be found in the included vignette

vignette("incidence2", package = "incidence2")

Copy Link

Version

Install

install.packages('incidence2')

Monthly Downloads

1,150

Version

2.6.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Taylor

Last Published

April 14th, 2025

Functions in incidence2 (2.6.2)

regroup

Regroup 'incidence' objects
summary.incidence2

Summary of an incidence object
plot.incidence2

Plot an incidence object
incidence2-package

incidence2: Compute, Handle and Plot Incidence of Dated Events
incidence2-defunct

Functions now defunct in package incidence2
as

Coerce to and from an incidence object
bootstrap_incidence

Bootstrap incidence time series
incidence

Compute the incidence of events
complete_dates

Complete dates for all group combinations
dplyr-verbs

dplyr and tidyr verbs
cumulate

Compute cumulative 'incidence'
estimate_peak

Estimate the peak date of an incidence curve
accessors

Access various elements of an incidence object
split.incidence2

Divide an incidence2 object in to it's implicit groupings
vibrant

Color palettes used in incidence
covidregionaldataUK

Regional data for COVID-19 cases in the UK
keep

Keep first, last and peak occurences
reexports

Objects exported from other packages