Skip to contents

Calculates net registrations by subtracting outflows from inflows aggregated by geography and time.

Usage

get_regnet(iso = NULL)

Arguments

iso

Optional character. ISO3 country code to filter the data by geography. If NULL (default), returns data for all geographies.

Value

A data frame with columns t, geo, n_in, n_out, and n where n is net registrations.

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|
#> |:---|:--|----:|-----:|--:|