Predict.matrix.rn.smooth | R Documentation |
For data observed over river networks, a simple river network smoother can be appropriate. These functions provide such a smoother class for mgcv.
## S3 method for class 'rn.smooth'
Predict.matrix(object, data)
object |
For the smooth.construct method a smooth specification object, usually generated by a term s(x,...,bs="rn", xt=list(polys=foo)). x is a factor variable giving labels for geographic districts, and the xt argument is obligatory: see details. For the Predict.Matrix method an object of class "rn.smooth" produced by the smooth.construct method. |
data |
a list containing just the data (including any by variable) required by this term, with names corresponding to object$term (and object$by). The by variable is the last element. |
An object of class "rn.smooth" or a matrix mapping the coefficients of the river network smooth to the predictions for the nodes listed in data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.