#' Salvage prediction
#'
#' Predicted salvage based on salvage_newdata and salvage_model.
#'
#' @md
#' @param facility Water export facility: CVP, SWP, both
#' @param newdata Data frame with input data needed for model predictions
#'
#' @export
#'
salvage_prediction <- function(facility, newdata){
newdata$salvaged <- predict(object = salvage_model(facility),
newdata = newdata,
type = "response")
return(newdata)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.