MAP
px_map.px.Rd
Inspect or change MAP.
Examples
# Set MAP for all languages
x1 <-
px(population_gl) |>
px_map('Great Britain')
# Print MAP
px_map(x1)
#> [1] "Great Britain"
# Set MAP for individual languages
library(tibble)
x2 <-
x1 |>
px_languages(c('en', 'kl')) |>
px_map(tribble(~language, ~value,
'en', 'Great Britain',
'kl', 'Kalaallit Nunaat'))
px_map(x2)
#> # A tibble: 2 × 2
#> language value
#> <chr> <chr>
#> 1 en Great Britain
#> 2 kl Kalaallit Nunaat
# Remove MAP
x3 <- px_map(x2, NULL)
px_map(x3)
#> NULL