getRtopParams | R Documentation |
This function sets a range of the parameters for the intamap package,
to be included in the object described in rtop-package
getRtopParams(params,newPar, observations, formulaString, ...)
params |
An existing set of parameters for the interpolation process,
of class |
newPar |
A |
observations |
|
formulaString |
formula that defines the dependent variable as a linear model
of independent variables, see e.g. |
... |
Individual parameters for updating
|
A list of the parameters with class rtopParams
to be included in the
object
described in rtop-package
This function will mainly be called by createRtopObject
, but
can also be called by the user to create a parameter set or update an
existing parameter set. If none of the arguments is a list of class
rtopParams
, the function will assume that the argument(s) are
modifications to the default set of parameters. The function can also be called
by other functions in the rtop-package if the users chooses not to work with
an object of class rtop
.
If the function is called with two lists of parameters (but the first one is
not of class rtopParams
) they are both seen as modifications to the
default parameter set. If they share some parameters, the parameter values from
the second list will be applied.
Parallel processing has been included for some of the functions. The default is no parallel procesing, and the package also attempts to decide whether it is sensible to start a set of clusters and distribute jobs to them based on the size of the job. The default limit might not be the best for every system.
Jon Olav Skoien
Cressie, N. 1985. Fitting variogram models by weighted least squares. Mathematical Geology, 17 (5), 563-586
Skoien J. O., R. Merz, and G. Bloschl. Top-kriging - geostatistics on stream networks. Hydrology and Earth System Sciences, 10:277-287, 2006
Skoien, J. O., Bloschl, G., Laaha, G., Pebesma, E., Parajka, J., Viglione, A., 2014. Rtop: An R package for interpolation of data with a variable spatial support, with an example from river networks. Computers & Geosciences, 67.
createRtopObject
and rtop-package
# Create a new set of intamapParameters, with default parameters:
params = getRtopParams()
# Make modifications to the default list of parameters
params = getRtopParams(newPar = list(gDist = TRUE, nugget = FALSE))
# Make modifications to an existing list of parameters
params = getRtopParams(params = params, newPar = list(gDist = TRUE,
nugget = FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.