Learn R Programming

phenology (version 10.1)

toggle_Min_PMin: Transform a set of parameters from Min, MinB or MinE to PMin, PminB or PminE, or reverse

Description

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.

Usage

toggle_Min_PMin(parameters = stop("A set of parameters must be indicated"))

Value

Return a set of modified parameters

Arguments

parameters

Set of current parameters

Author

Marc Girondot marc.girondot@gmail.com

Details

toggle_Min_PMin transforms a set of parameters from Min, MinB or MinE to PMin, PminB or PminE, or reverse

Examples

Run this code
# 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)

Run the code above in your browser using DataLab