It might be a generic question. I am trying to perform Logistic regression on a specific data set in R. I have a binary column. Should I factorize it (i.e. as.factor(column_X)) before constructing the model? or Should I leave it as it is.
The reason why I am opting for the second option is because by any means R will perform one hot encoding internally and convert the binary column into numeric again.