write_variables: Write regressors file

View source: R/utils.R

write_variablesR Documentation

Write regressors file

Description

Write regressors file

Usage

write_variables(vars, file)

Arguments

vars

A named list of ts objects.

file

Path to the output XML file.

Value

No return value (NULL returned invisibly). This function writes variables to file for use in JD+.

Examples



# Load a Workspace
file <- system.file("workspaces", "workspace_test.xml", package = "rjd3workspace")
jws <- jws_open(file)

# Get context
my_context <- get_context(jws)
vars <- my_context$variables[[1L]]

# Writing the regressors in a xml file
write_variables(vars, file = normalizePath("tmp.xml", mustWork = FALSE))


palatej/rjdemetra3 documentation built on July 16, 2025, 5:41 p.m.