View source: R/modify_languages.R
px_language | R Documentation |
Inspect or change LANGUAGE.
px_language(x, value, validate)
## S3 method for class 'px'
px_language(x, value, validate = TRUE)
x |
A px object |
value |
Optional. A character string. If missing, the current LANGUAGE is returned. If NULL, LANGUAGE is removed. |
validate |
Optional. If TRUE a number of validation checks are performed on the px object, and an error is thrown if the object is not valid. If FALSE, the checks are skipped, which can be usefull for large px objects where the check can be time consuming. Use |
If LANGUAGES is defined, changing LANGUAGE will also add is to LANGUAGES.
A px object
px_languages
# Set LANGUAGE to 'en'
x1 <-
population_gl |>
px() |>
px_language('en')
# Print LANGUAGE
px_language(x1)
# Remove LANGUAGE
x2 <- px_language(x1, NULL)
px_language(x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.