createRtopObject | R Documentation |
This is a help function for creating an object (see rtop-package
to be used for interpolation within the rtop package
createRtopObject(observations, predictionLocations,
formulaString, params=list(), overlapObs,
overlapPredObs, ...)
observations |
|
predictionLocations |
a |
formulaString |
formula that defines the dependent variable as a linear model
of independent variables; suppose the dependent variable has name |
params |
parameters to modify the default parameters of the rtop-package,
set internally in this function by a call to |
overlapObs |
matrix with observations that overlap each other |
overlapPredObs |
matrix with |
... |
Extra parameters to |
An object of class rtop
with observations, prediction locations,
parameters and possible other elements useful for interpolation in the rtop-package.
Most other externally visible functions in the package will be able to
work with this object, and add the results as a new element.
Jon Olav Skoien
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.
getRtopParams
rpath = system.file("extdata",package="rtop")
library(sf)
observations = st_read(rpath, "observations")
predictionLocations = st_read(rpath,"predictionLocations")
# Create a column with the specific runoff:
observations$obs = observations$QSUMMER_OB/observations$AREASQKM
# Setting some parameters
params = list(gDist = TRUE, cloud = FALSE)
# Create a column with the specific runoff:
observations$obs = observations$QSUMMER_OB/observations$AREASQKM
# Build an object
rtopObj = createRtopObject(observations, predictionLocations,
params = params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.