Learn R Programming

yhatr (version 0.15.1)

yhat.predict: Make a prediction using Yhat.

Description

This function calls Yhat's REST API and returns a response formatted as a data frame.

Usage

yhat.predict(model_name, data, model_owner, raw_input = FALSE,
  silent = TRUE)

Arguments

model_name
the name of the model you want to call
data
input data for the model
model_owner
the owner of the model [optional]
raw_input
when true, incoming data will NOT be coerced into data.frame
silent
should output of url to console (via yhat.post) be silenced? Default is FALSE.

Examples

Run this code
yhat.config <- c(
 username = "your username",
 apikey = "your apikey",
 env = "http://sandbox.yhathq.com/"
)
## Not run: ------------------------------------
# yhat.predict("irisModel", iris)
## ---------------------------------------------

Run the code above in your browser using DataLab