spreadsheet_update_path | R Documentation |
Update the path to raw data in a workspace (spreadsheet)
spreadsheet_update_path(jws, new_path, idx_sap = NULL, idx_sai = NULL)
jws |
workspace object |
new_path |
new path to the spreadsheet containing raw data |
idx_sap |
index (or indices) of the SAProcessing(s) |
idx_sai |
index (or indices) of the SA-item(s). |
The spreadsheet file must be a .xlsx file. .xls files are not accepted in JDemetra+ v3.x.
This function returns either NULL if the update was successful, or an error.
# Load a workspace
file <- system.file("workspaces", "workspace_test.xml", package = "rjd3workspace")
my_ws <- jws_open(file)
# Update the entire second SA-Processing of the `my_ws` workspace with a new path to raw data
spreadsheet_update_path(
jws = my_ws,
new_path = system.file("data", "IPI_nace4.xlsx", package = "rjd3workspace"),
idx_sap = 2
)
# Select one (the 2nd) SA-item from second SA-Processing
sap2 <- jws_sap(my_ws, 2)
sai2 <- jsap_sai(sap2, 2)
# Check path
get_ts_metadata(sai2, "@id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.