# Set SOURCE for all languages
x1 <-
px(population_gl) |>
px_source('Statistics Greenland')
# Print SOURCE
px_source(x1)
# Set SOURCE for individual languages
library(tibble)
x2 <-
x1 |>
px_languages(c('en', 'kl')) |>
px_source(tribble(~language, ~value,
'en', 'Statistics Greenland',
'kl', 'Naatsorsueqqissaartarfik'))
px_source(x2)
# Remove SOURCE
x3 <- px_source(x2, NULL)
px_source(x3)
Run the code above in your browser using DataLab