The R implementation of RandomForest can take in categorical features as factors and train and predict on these features without encoding. Normally, I use the python implementation from scikit-learn that requires encoding of categorical data before training. I am trying to determine the best encoding strategy for my problem, which has me wondering, how does the R implementation handle categorical data? I would think it would have to be encoded somehow under the hood. If so, what encoding strategy is used?