get_importance: Extract variable importance from model
Description
Extracts variable importance scores from models fitted with rf(), rf_repeat(), or rf_spatial().
Usage
get_importance(model)
Value
Data frame with columns variable (character) and importance (numeric), sorted by decreasing importance.
Arguments
model
Model object from rf(), rf_repeat(), or rf_spatial().
Details
For spatial models (rf_spatial()) with many spatial predictors, this function returns aggregated importance statistics for spatial predictors to improve readability. Non-spatial models return per-variable importance scores directly.