readData: Read scenario data

View source: R/readData.R

readDataR Documentation

Read scenario data

Description

Reads a single element of replicate, macro evaluation or micro evaluation data from the current scenario

Usage

readData(
  dataNumber,
  dataType = c("ReplicateData", "MicroEvaluation", "MacroEvaluation"),
  variables = NULL,
  workingPath = getwd(),
  method = getEctdDataMethod()
)

Arguments

dataNumber

(Required) The number of the data entry you wish to read. This number must be between 0 and 9999

dataType

(Optional) The type of data you wish to read - either "ReplicateData", "MacroEvaluation" or "MicroEvaluation". By default, "ReplicateData" is used

variables

(Optional) The variables that must be in the data to continue. No variables are provided by default (so no variable check is performed)

workingPath

(Optional) The working path of the current scenario. By default, the current working directory is used

method

(Optional) Data storage method (i.e. where to extract the data from). Given by getEctdDataMethod by default

Value

readData will return a data frame containing the desired element of data if it exists.

Author(s)

Mike K Smith mstoolkit@googlemail.com

See Also

writeData

Examples


	## Not run: 
   readData(dataNumber = 10, dataType = "Macro")
	 readData(dataNumber = 1, dataType = "Replicate")
	 readData(dataNumber = 800, dataType = "Micro")
 
## End(Not run)


MikeKSmith/MSToolkit documentation built on Feb. 15, 2024, 5:32 p.m.