The easiest way, assuming you want to use everything except column 100 as predictor variables,
model <- glm(v100 ~. , data = train, family = "binomial")
where v100is the name of the 100th column (the name cannot be 100if you did not do something advanced / hidden to undermine the R rules about the column names of the data frame ...)
source
share