predict_interpolation | R Documentation |
Predict data by linear interpolation from existing data
predict_interpolation(
x,
y,
newdata,
extrapolate_predictions = TRUE,
na.rm = TRUE
)
x |
A vector of known predictor values. |
y |
A vector of known response values. |
newdata |
A vector of new predictor values for which the response value will be predicted |
extrapolate_predictions |
Boolean indicating whether values of |
na.rm |
logical whether NA's should be removed before making predictions |
A vector of response values for each predictor value in
newdata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.