Currently, i created a random forest model in R called:
my_rforest
I'm trying to access the variables used by the random forest of my dataset, but so far, i did:
my_var <- my_rforest$importance
which gives me the output:
MeanDecreaseGini
temperature 6.51
wind 4.67
heat 0.3
.
.
.
Is there any way i could obtain the variable column, the first column of the output?
I'm currently using the following packages for my random forest.
library(randomForest)
library(caret)