gr_set_param | R Documentation |
The value is set for selected years in parameter list. Such list is returned by gr_separate()
with debug = TRUE
set.
gr_set_param(params, p, value, years = NULL)
params |
|
p |
Name of the parameter. |
value |
Numeric value to set. |
years |
Integer vector of years to modify. Defaults to |
list
of list
s — a modified version of params
library(grwat)
data(spas) # example Spas-Zagorye data is included with grwat package
# Debug mode gives access to additional information
sep = gr_separate(spas,
params = gr_get_params(reg = 'center'),
debug = TRUE)
# Visualize
gr_plot_sep(sep, c(1978, 1989))
# actual params used for each year
parlist = attributes(sep)$params
# set the sprecdays parameter for multiple years
parlist = gr_set_param(parlist, sprecdays,
years = c(1978, 1989:1995),
value = 15)
# use the list of parameters for separation
sep_new = gr_separate(spas, params = parlist, debug = TRUE)
# Visualize
gr_plot_sep(sep_new, c(1978, 1989))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.