CreateMinMaxGroup:
Constructing the minimum and the maximum for a group of dates(phase)
Description
Constructs a dataframe containing the output of the MCMC algorithm corresponding to the minimum and the maximum of a group of dates (phase)
Usage
CreateMinMaxGroup(data, position, name ="Phase", add=NULL, exportFile=NULL)
Arguments
data
dataframe containing the output of the MCMC algorithm
position
numeric vector containing the position of the column corresponding to the MCMC chains of all dates included in the phase of interest
name
name of the current group of dates or phase
add
the name of the dataframe in which the current minimum and maximum should be added. Null by default.
exportFile
the name of the final file that will be saved if chosen. Null by default.
Value
A dataframe containing the minimum and the maximum of the group of dates included in the phase of interest. These values may be added to an already existing file "add" if given.