set.response
Choose a response to be preferred for plotting functions. Will set SPEARobj$options$current.response.idx
(which can be set manually as well)
Choose a response to be preferred for plotting functions. Will set SPEARobj$options$current.response.idx
(which can be set manually as well)
set.response(response = NULL)
Argument |Description
------------- |----------------
response
| Which response to use? Can be an integer (which column number/index?) or string (which column name)? If string, must be found in colnames(SPEARobj$data$train$Y)
. Defaults to NULL (1
)
# Use the column number / index
SPEARobj$set.response(1)
# use the column name instead
SPEARobj$set.response("response_name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.