ERTMonSimpleTestData: Simple test data generation

Description Usage Arguments Details Value

View source: R/SimpleTestDataCreation.R

Description

Generates test data with specified parameters and writes the corresponding CSV files in a specified directory.

Usage

1
2
3
4
5
6
7
8
9
ERTMonSimpleTestData(
  numberOfEntities = 10,
  numberOfVariables = 3,
  timeInterval = 900,
  numberOfTimeCells = 36,
  randomStartTimesQ = FALSE,
  variableFunction = "Linear",
  exportDirectoryName = NULL
)

Arguments

numberOfEntities

The number of entities.

numberOfVariables

The number of variables

timeInterval

The time interval corresponding to one time cell.

numberOfTimeCells

The number of time cells.

randomStartTimesQ

Should the starting times for different entities be different.

variableFunction

A function or a function specification string, one of "Constant", "Linear", or "Random".

exportDirectoryName

The name of the directory where the CSV files should be written. If NULL the files are not exported

Details

The element names correspond to the exported files. The element names of the result are "EntityAttributes", "EventRecords", "ComputationSpecification". The function specified with variableFunction is applied to the points of a generated regular time grid.

Value

A list with named elements.


antononcube/ERTMon-R documentation built on Oct. 14, 2021, 2:27 p.m.