compute {RJDemetra}R Documentation

Compute a workspace multi-processing(s)

Description

Function to compute all the multiprocessings or only a given one from a workspace. By default, the workspace only contains definitions: computation is needed to recalculate and access the adjusted model (with get_model).

Usage

compute(workspace, i)

Arguments

workspace

the workspace to compute.

i

a character or numeric indicating the name or the index of the multiprocessing to compute. By default, all multiprocessings are computed.

See Also

get_model

Examples


spec_x13 <- x13_spec(spec = "RSA5c", easter.enabled = FALSE)
sa_x13 <- x13(ipi_c_eu[, "FR"], spec = spec_x13)

wk <- new_workspace()
mp <- new_multiprocessing(wk, "sap1")
add_sa_item(wk, "sap1", sa_x13, "X13")
sa_item1 <- get_object(mp, 1)

get_model(sa_item1, wk) # Returns NULL

compute(wk)

get_model(sa_item1, wk) # Returns the SA model sa_x13




[Package RJDemetra version 0.2.6 Index]