View source: R/export_marginal_distributions.R
| export_marginal_distributions | R Documentation |
Export the marginal distributions to CSV files
export_marginal_distributions(
marginals,
folder_path,
create_folder = FALSE,
force = FALSE
)
marginals |
an Object of type RESIDE from
|
folder_path |
path to folder where to save files. |
create_folder |
if the folder does not exist should it be created, Default: FALSE |
force |
if the folder already contains marginal distribution files should they be removed, Default: FALSE |
Exports each of the marginal distributions to CSV files within a given folder, along with the continuous quantiles.
No return value, called for exportation of files.
get_marginal_distributions
marginal_distributions <- get_marginal_distributions(
IST,
variables = c("SEX", "AGE", "RSBP", "RATRIAL")
)
export_marginal_distributions(
marginal_distributions,
folder_path = file.path(tempdir(), "marginals"),
create_folder = TRUE,
force = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.