checkSetup will do some sanity checks on input data provided through object.
object, to be passed to
logical; TRUE to suppress OK statement
checkSetup is a function that makes certain tests on the intamap object to
make sure that it is suited for interpolation. Particularly, it will issue a warning
or an error if one of the following conditions are met:
observationsis not an element of
observationscontain less than 20 observations
Some of the observation locations are duplicated
formulaStringis not an element of
None of the columns of
observationshas a name that corresponds to the independent variable of
predictionLocationsis not an element of
predictionLocationsis not a
targetCRSis given, but
predictionLocationsdo not have CRS set
addBiasincludes biases that are not part of
The function will issue a warning if it appears that
observations share a small region. This warning is given as it is
a likely cause of errors, although it can also happen if
are limited to one small cluster.
returns TRUE if check passes, will halt with error when some some error condition is met.
Edzer J. Pebesma
Pebesma, E., Cornford, D., Dubois, G., Heuvelink, G.B.M., Hristopulos, D., Pilz, J., Stohlker, U., Morin, G., Skoien, J.O. INTAMAP: The design and implementation f an interoperable automated interpolation Web Service. Computers and Geosciences 37 (3), 2011.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.