Prepare Regional Net Registration Data for Charts
get_regnet.RdCalculates net registrations by subtracting outflows from inflows aggregated by geography and time.
Examples
# Get net registrations for all geographies
net_all <- get_regnet()
knitr::kable(head(net_all,5))
#>
#>
#> |geo |t | n_in| n_out| n|
#> |:---|:--------|-------:|------:|-------:|
#> |ARG |2023 Jan | 1993127| 473166| 1519961|
#> |ARG |2023 Feb | 1933049| 474376| 1458673|
#> |ARG |2023 Mar | 1881628| 266051| 1615577|
#> |ARG |2023 Apr | 1882274| 141310| 1740964|
#> |ARG |2023 May | 1749469| 96854| 1652615|
# Get net registrations for USA only
net_usa <- get_regnet("USA")
knitr::kable(head(net_usa,5))
#>
#>
#> |geo |t | n_in| n_out| n|
#> |:---|:--|----:|-----:|--:|