Update a SAS Model Manager model variables

update_model_variables(
  session,
  model,
  input_vars = NULL,
  output_vars = NULL,
  exact = TRUE,
  ...
)

Arguments

session

viya_connection object, obtained through session function

model

MMmodel object, model ID or model name. If name, will try to find a single model with exact name match. See exact parameter

input_vars

data.frame with the input data sample to configure the model variables.

output_vars

data.frame with the output data sample to configure the model variables.

exact

the filter query should use "contains" for partial match or "eq" for exact match

...

additional parameters to be passed to httr::POST such as httr::add_headers

Value

A MMmodelVariables variables

Examples


if (FALSE) { # \dontrun{
new_variables <- update_model_variables(sess, model = new_model, 
                                            input_vars = iris[,1:4], 
                                            output_vars = iris[,5, drop = F]
                             )
new_variables
} # }