Learn R Programming

rsurvstat

Get case count data from the Robert Koch Institute SurvStat service.

Installation

In general use rsurvstat is expected to be installed alongside the tidyverse as sf set of packages. It is recommended to install these first.

Binary packages of rsurvstat are available on CRAN and r-universe for macOS and Windows. rsurvstat can be installed from source on Linux.

You can install the released version of rsurvstat from CRAN with:

install.packages("rsurvstat")

Alternative versions of rsurvstat

Early release versions are available on the r-universe. This will typically be more up to date than CRAN.

# Enable repository from the bristol vaccine centre
options(repos = c(
  "bristol-vaccine-centre" = 'https://bristol-vaccine-centre.r-universe.dev/',
  CRAN = 'https://cloud.r-project.org'))
# Download and install rsurvstat in R
install.packages('rsurvstat')

The unstable development version is available from GitHub with:

# install.packages("devtools")
devtools::install_github("bristol-vaccine-centre/rsurvstat")

Copy Link

Version

Install

install.packages('rsurvstat')

Version

0.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Robert Challen

Last Published

January 22nd, 2026

Functions in rsurvstat (0.1.3)

get_snapshot

Retrieve data from the SurvStat web service relating to a single time period.
set_cache_settings

Set options for the rsurvstat cache
rappdirs_user_cache_dir

Path to user cache directory
%>%

Pipe operator
BerlinMap

A Berlin outline sf map
cache_clear

Delete all cached SurvStat requests
CountyKey71Map

The CountyKey71Map dataset
commands

Commands supported by the SurvStat service
NutsKey71Map

The NutsKey71Map dataset
FedStateKey71Map

The FedStateKey71Map dataset.
fit_population

Infer and fit a population model from SurvStat output
get_timeseries

Retrieve time series data from the SurvStat web service.
.DollarNames.survstat_option

Support for auto suggests on survstat_options
diseases

SurvStat disease list
$.survstat_option

Survstat option accessor
languages

Languages supported by the SurvStat service
.tree

Tree printing method for list objects. This is an interactive function.
.check_curl

Check for supported curl version
.df_to_list_of_lists

Convert a nested dataframe to a multilevel list
.list_of_lists_to_df

Convert a multilevel list to a nested dataframe
age_groups

SurvStat age group list
cubes

Data sources in the SurvStat service
.transpose

Transform a nested dataframe to / from a row by row list