Skip to contents

Gets and sets the current "data storage" method, used for the storage of simulated trial data

Usage

setEctdDataMethod(method)

Arguments

method

(Required) The data storage method to use (either 'CSV', 'RData' or 'Internal'

Value

The "getEctdDataMethod" function returns the current data method ("CSV", "RData" or "Internal") The "setEctdDataMethod" function invisibly returns the method that has just been set as the default

Details

Gets (getEctdDataMethod) and sets (setEctdDataMethod) the current "data storage" method, used for the storage of simulated trial data. The choices of storage method are: * CSV - Replicate data stored in seperate CSV files outside of R * RData - Replicate data stored in seperate RData files outside of R * Internal - Replicate data stored as a list of data frames in an internal environment (.ectdEnv$DataStore)

Note: The data storage only impacts replicate data - micro and macro evaluation data is always held as CSV files

Examples

if (FALSE) {

  nowMethod <- getEctdDataMethod()

  setEctdDataMethod("CSV")
  getEctdDataMethod()

  setEctdDataMethod("RData")
  getEctdDataMethod()

  setEctdDataMethod("Internal")
  getEctdDataMethod()

  setEctdDataMethod(nowMethod)

}