px_save | R Documentation |
Save px object to file
px_save(x, path, save_data = TRUE, data_path = NULL)
x |
A px object. |
path |
Path to file. The file extension determines the format. Can be:
|
save_data |
If FALSE, no 'Data' sheet is created in the Excel workbook.
Can only be used if |
data_path |
Path to an |
Use px_codepage()
to change file encoding.
Nothing
px_codepage()
# Save px object to PX-file
tmp_dir <- tempdir()
x <- px(population_gl)
px_save(x, file.path(tmp_dir, "population.px"))
# Save px object to Excel workbook
px_save(x, file.path(tmp_dir, "population.xlsx"))
# Save px object as R-script that creates the px object
px_save(x, file.path(tmp_dir, "population.R"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.