Learn R Programming

RJDemetra (version 0.1.4)

compute: Compute the multi-processing from a workspace

Description

Function to compute all the multi-processings or a given one from a workspace. By default the workspace only contains definitions: computation is needed to get the seasonal adjustment 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 the multi-processings are compute.

See Also

get_model

Examples

Run this code
# NOT RUN {
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, "sa1")
add_sa_item(wk, "sa1", 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
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab