View source: R/Parameter_Global_Year.R
Parameter_Global_Year | R Documentation |
This function is used to transform a set of parameters
that uses Peak, LengthB, LengthE, B, E, or Length to the same parameter
with Year effect, or reverse.
The parameter series can be or a result from add_phenology() or from
fit_phenology() or simply a vector of names.
If this is a vector of names, it is checked to remove _ characters.
Parameter_Global_Year(
parameters = stop("A set of parameters must be indicated"),
parname = c("Peak", "LengthB", "LengthE", "B", "E", "Length"),
series = NULL,
sep_year = "-",
perYear = TRUE
)
parameters |
Set of current parameters |
parname |
Name of parameter to transform |
series |
Set of series (see description) |
sep_year |
Character used to separate the year |
perYear |
TRUE if year-specific values must be setup |
Parameter_Global_Year transforms a set of parameters from Year to global effect, or reverse
Return a set of modified parameters
Marc Girondot marc.girondot@gmail.com
## Not run:
Parameter_Global_Year(parameters=c("Peak_Beach1-2018"=151, "Peak_Beach1-2019"=161),
parname="Peak", perYear=FALSE)
Parameter_Global_Year(parameters=c("Peak"=151),
series = c("beach1", "beach2"),
parname="Peak", perYear=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.