set_name {rjdworkspace} | R Documentation |
Set the name of a SaItem
Description
Function to set the name of a "sa_item"
.
Usage
set_name(sa_item, name)
Arguments
sa_item |
a |
name |
the new name. |
Value
a new "sa_item"
with the new name.
Examples
library("RJDemetra")
sa_x13 <- jx13(series = ipi_c_eu[, "FR"])
wk <- new_workspace()
sap1 <- new_multiprocessing(workspace = wk, name = "sap-1")
add_sa_item(workspace = wk, multiprocessing = "sap-1",
sa_obj = sa_x13, name = "Wrong name")
sa_item1 <- get_object(x = sap1, pos = 1L)
new_sa_item <- set_name(sa_item = sa_item1, name = "Good name")
replace_sa_item(sap = sap1, pos = 1L, sa_item = new_sa_item)
# The first sa_item of sap1 is now "Good name"
get_name(x = get_object(x = sap1, pos = 1L))
[Package rjdworkspace version 1.1.7 Index]