px_language {pxmake} | R Documentation |
LANGUAGE
Description
Inspect or change LANGUAGE.
Usage
px_language(x, value, validate)
## S3 method for class 'px'
px_language(x, value, validate = TRUE)
Arguments
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 |
Details
If LANGUAGES is defined, changing LANGUAGE will also add is to LANGUAGES.
Value
A px object
See Also
Examples
# 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)
[Package pxmake version 0.18.0 Index]