View source: R/toggle_Min_PMin.R
toggle_Min_PMin | R Documentation |
This function is used to transform a set of parameters that uses Min, MinB or MinE to a set of parameters that uses PMin, PminB or PminE, or reverse.
toggle_Min_PMin(parameters = stop("A set of parameters must be indicated"))
parameters |
Set of current parameters |
toggle_Min_PMin transforms a set of parameters from Min, MinB or MinE to PMin, PminB or PminE, or reverse
Return a set of modified parameters
Marc Girondot marc.girondot@gmail.com
# Read a file with data
data(Gratiot)
# Generate a formatted list nammed data_Gratiot
refdate <- as.Date("2001-01-01")
data_Gratiot<-add_phenology(Gratiot, name="Complete", reference=refdate, format="%d/%m/%Y")
# Generate initial points for the optimisation
parg<-par_init(data_Gratiot)
# Change the parameters to PMinB and PMinE
parg1<-toggle_Min_PMin(parameters=parg)
# And change back to MinB and MinE
parg2<-toggle_Min_PMin(parameters=parg1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.