variant_sti_time_series: Variant STI time series

Description Usage Arguments Details Value See Also Examples

View source: R/variants.R

Description

This function takes the weekly variant of concern data provided by the RKI and approximates the STI time series of the different variants.

Usage

1
variant_sti_time_series(interpolation = "linear", format_long = F)

Arguments

interpolation

Specifies whether the voc data should be interpolated. Options include "linear" and "none". The default in "none", i.e. no interpolation.

format_long,

boolean Specifies whether a long format should be used. A long format pivots the data. The default is F

Details

It assumes, that the proportions of the variants in the actual cases is the same as the proportion in the sampled viral matter. Since the RKI only provides the variant shares on a weekly bases, the function can interpolate the data, using a linear spline interpolation.

Value

A tibble carrying a "date" column, and a column for each variant STI for that day.

See Also

Other Variants: plot_variant_data(), plot_variants(), variant_case_r_value(), variant_case_time_series()

Examples

1
2
3
4
variant_sti_time_series()
variant_sti_time_series(interpolation="linear")

## Not run: variant_sti_time_series(interpolation=T)

slausmeister/revolution documentation built on Dec. 23, 2021, 3:24 a.m.