Learn R Programming

hsdar (version 0.4.1)

caret::setPredictor: Set predictor variable(s)

Description

Set predictor variable(s) to be used in functions of package caret.

Usage

## S3 method for class '.CaretHyperspectral,character':
setPredictor(x, predictor)

Arguments

x
Object of one of the following classes: [echo=TRUE,results=rd]{ paste(hsdar:::.getCaretCompatibleClasses(), collapse = ", ") }. predictor{ Character vector. Name of additional predictor variable(s) (from the attrib