BlasBenito / spatialRF

R package to fit spatial models with Random Forest
https://blasbenito.github.io/spatialRF/
109 stars 16 forks source link

interaction_explorer error: creation of NAs in the transposition step #18

Open ArielRodrig opened 1 year ago

ArielRodrig commented 1 year ago

Investigate for relevant interactions. The original function in spatialRF package contained an error that caused it to fail. The cause was the creation of NAs in the transposition of the output of the combinatorial sampling of pairs of variable names. I solved this by converting the factors to characters prior to the transposition step and saved as a new function: interaction_explorer_function.R (here attached as "interaction_explorer_function.txt"). It all worked after that.

interaction_explorer_function.txt