Skip to contents

Export the marginal distributions to CSV files

Usage

export_marginal_distributions(
  marginals,
  folder_path,
  create_folder = FALSE,
  force = FALSE
)

Arguments

marginals

an Object of type RESIDE from import_cor_matrix

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

Value

No return value, called for exportation of files.

Details

Exports each of the marginal distributions to CSV files within a given folder, along with the continuous quantiles.

Examples

# \donttest{
  marginal_distributions <- get_marginal_distributions(IST)
  export_marginal_distributions(
    marginal_distributions,
    folder_path = tempdir()
  )
#> Exporting  categorical to:  /tmp/RtmpcPiVca/categorical_variables.csv
#> Exporting  binary to:  /tmp/RtmpcPiVca/binary_variables.csv
#> Exporting  continuous to:  /tmp/RtmpcPiVca/continuous_variables.csv
#> Exporting  quantiles to:  /tmp/RtmpcPiVca/continuous_quantiles.csv
#> Exporting  summary to:  /tmp/RtmpcPiVca/summary.csv
# }