Set response variable to be used in functions of package caret.
Usage
## S3 method for class '.CaretHyperspectral,character':
setResponse(x, response)
Arguments
x
Object of one of the following classes:
[echo=TRUE,results=rd]{
paste(hsdar:::.getCaretCompatibleClasses(), collapse = ", ")
}.response{
Character. Name of response variable (from the attributes).
}