Predict with randomForest
Usage
predict_randomForest(
modelRF,
predInput,
scaleInput = FALSE,
col_means_train,
col_stddevs_train,
filename = "",
tempdirRaster = NULL,
nCoresRaster = 2
)Arguments
- modelRF
a
randomForest::randomForest()model.- predInput
data.frameorrasterwith colnames or layer names matching the expected input for modelRF.- scaleInput
if
TRUE, scalepredInputwithcol_means_trainand colcol_stddevs_train.- col_means_train
the original mean of the
predInputcolumns.- col_stddevs_train
the original sd of the
predInputcolumns.- filename
the file to write the raster predictions.
- tempdirRaster
path to a directory to save temporal raster files.
- nCoresRaster
number of cores used for parallelized raster cores. Use half of the available cores by default.