Retrieves the global daily prevalence of a PANGO lineage

getGlobalPrevalence(pangolin_lineage, mutations = NULL, cumulative = NULL)

Arguments

pangolin_lineage

PANGO lineage name

mutations

(optional) a `vector` of mutation(s)

cumulative

(optional) `Boolean` (T/F), T returns cumulative global prevalence since first day of detection

Value

dataframe

Examples

# B.1.1.7 lineage
b117 = getGlobalPrevalence(pangolin_lineage = "B.1.1.7", mutations = "S:E484K")
#> Retrieving data... 
head(b117)
#>         date total_count lineage_count total_count_rolling
#> 1 2020-12-17        5210             1            6339.429
#> 2 2020-12-18        5059             1            6198.714
#> 3 2020-12-19        3645             0            6157.286
#> 4 2020-12-20        3172             0            6174.857
#> 5 2020-12-21        9251             0            5831.429
#> 6 2020-12-22        4637             0            5242.143
#>   lineage_count_rolling   proportion proportion_ci_lower proportion_ci_upper
#> 1             0.1428571 2.253470e-05        7.745941e-08        0.0003961739
#> 2             0.2857143 4.609251e-05        7.920870e-08        0.0004051190
#> 3             0.2857143 4.640264e-05        7.974900e-08        0.0004078819
#> 4             0.2857143 4.627059e-05        7.951654e-08        0.0004066932
#> 5             0.2857143 4.899559e-05        8.420742e-08        0.0004306799
#> 6             0.2857143 5.450334e-05        9.366866e-08        0.0004790579