TS_load: Load saved file and return 'TS' and 'save_dir'

View source: R/TS_load.R

TS_loadR Documentation

Load saved file and return TS and save_dir

Description

This internal function takes care of some pesky details when a local Gaussian investigation is to be performed on a time series. It can also compute the save_dir that should be used when saving the results based on the given time series TS.

Usage

TS_load(.TS_info, save_dir = TRUE)

Arguments

.TS_info

A list containing the three components TS, main_dir and save_dir. The TS-component can either be the time series of interest, or it could be the filename used to store the time series.

save_dir

Logical value, default TRUE. To be used when it is of interest to have a path at which the next step in the computation should be stored.

Value

This function will always add an object named TS to the environment of the calling function. Depending on the logical value given by save_dir, it might also add a character-valued save_dir to this environment.


LAJordanger/localgaussSpec documentation built on May 6, 2023, 4:31 a.m.