Description Usage Arguments Value Author(s) See Also Examples
This is a help function for creating an object (see rtop-package
to be used for interpolation within the rtop package
1 2 3 | createRtopObject(observations, predictionLocations,
formulaString, params=list(), ainfo, areas, 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 standard parameters of the rtop-package,
set internally in this function by a call to |
ainfo |
|
areas |
|
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
rtop-package
and getRtopParams
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
library(rgdal)
rpath = system.file("extdata",package="rtop")
observations = readOGR(rpath,"observations")
# Create a column with the specific runoff:
observations$obs = observations$QSUMMER_OB/observations$AREASQKM
predictionLocations = readOGR(rpath,"predictionLocations")
# 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.