View source: R/modify_variable1.R
px_heading | R Documentation |
Inspect or change HEADING.
px_heading(x, value, validate)
## S3 method for class 'px'
px_heading(x, value, validate = TRUE)
x |
A px object |
value |
Optional. A character vector of variable names to change to
STUB. This also changes the HEADING order. With names in |
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 |
A px object or a character vector.
Statistics Sweden's documentation
px_stub
px_figures
x1 <- px(population_gl)
# Print HEADING
px_heading(x1)
# Add 'gender' to HEADING
x2 <- px_heading(x1, 'gender')
px_heading(x2)
# Change order of HEADING
x3 <- px_heading(x2, 'year')
px_heading(x3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.