View source: R/CreateMinMaxGroup.R
CreateMinMaxGroup | R Documentation |
Constructs a data frame containing the output of the MCMC algorithm corresponding to the minimum and maximum of a group of events
CreateMinMaxGroup( data, position, name = "Phase", add = NULL, exportFile = NULL )
data |
Data frame 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 |
Name of the data frame in which the current minimum and maximum
should be added, default = |
exportFile |
Name of the final file that will be saved if chosen,
default = |
A data frame containing the minimum and maximum of the group of dates included
in the phase of interest. These values may be appended to a data frame add
if given.
Anne Philippe, Anne.Philippe@univ-nantes.fr and
Marie-Anne Vibet, Marie-Anne.Vibet@univ-nantes.fr
data(Events) Temp = CreateMinMaxGroup(Events, c(2,4), name = "Phase2") ## Not run: #To do for saving the new variables in csv file Temp = CreateMinMaxGroup(Events, c(3,5), name = "Phase1", add=Temp, ## End(Not run) exportFile = "MinMaxPhases.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.