x1 <- px(population_gl)
# Print data table
px_data(x1)
# Change data table
population_gl_2024 <- subset(population_gl, year == 2024)
x2 <- px_data(x1, population_gl_2024)
# Return data table with VALUES instead of CODES
px_data(x1, labels = TRUE)
# Return VALUES for a specific language
x_mult <-
x1 |>
px_languages(c("en", "gl"))
px_data(x_mult, labels = "gl")
Run the code above in your browser using DataLab