Skip to contents

Create parameter file from list

Usage

list2param_file(dir_file_param, x)

Arguments

dir_file_param

Path to the directory that will contains the parameter file "parameters.param".

x

A list, for example create by read_param_file() or default_param_file().

Examples

if (FALSE) { # \dontrun{
dir = tempdir()
# Here a file parameters.param is created in the directory dir
# with default parameters of 'JWSACruncher' v2
list_param <- default_param_file(v3 = FALSE)
list2param_file(dir, list_param)
# to only export the raw and the seasonally adjusted series
list_param$tsmatrix_series <- c("y", "sa")
list2param_file(dir, list_param)
} # }