library(tibble)
# Set VARIABLE-TYPE
x1 <-
px(population_gl) |>
px_variable_type(tibble('variable-code' = 'year', 'variable-type' = 'time'))
# Print VARIABLE-TYPE
px_variable_type(x1)
# Remove VARIABLE-TYPE
x2 <- px_variable_type(x1, NULL)
px_variable_type(x2)
Run the code above in your browser using DataLab