tri_snow: Linear Triangulation Interpolation

Description Usage Arguments Details Value

View source: R/otherMethods.R

Description

A function that implements a linear triangulation interpolation. The function is a wrapper to appropriate functions in the akima package.

Usage

1
2
tri_snow(formula = RESPONSE ~ ELEVATION, locations, newdata,
  density = c(500, 500), bound_output = FALSE, ...)

Arguments

locations

The measurement locations to be used for interpolation. An object of class SpatialPointsDataFrame

newdata

The prediction locations. An objet of class SpatialPointsDataFrame, SpatialGridDataFrame, or SpatialPixelsDataFrame.

density

The density of the grid created by the interpolation. The first argument specifies the x density and the second the y density.

A

forumla argument specifying the response and explanatory variables. This formula should only be of the form RESPONSE ~ ELEVATION. No other formula types are allowed.

bound_ouput

If TRUE, the final ouputs are restricted to the observed outputs at the measurement locations.

Details

Note that this function does not use the formula call directly. Rather, if an explanatory variable is present, it is assumed to be the variable name for elevation and a normalized response, which is simply response/elevation, is used.

Value

A numeric vector of predictions with length equal to the number of rows in newdata.


beanb2/snowload documentation built on Jan. 7, 2020, 9:48 p.m.