I am not clear how to follow this, please clarify
So, I have created 200+ models & I just want to put them in a list & pass to map(tidy)
, I know how to do it manually, its as below, however I cant manually add 200 names as below, looking for a better solution (I guess something with deparse, evaluate or {{}}). They are named model1, model2... model200
library(tidyverse)
model1 <- lm(Sepal.Width~Sepal.Length,data=iris)
model2 <- lm(Sepal.Width~Sepal.Length+Petal.Width,data=iris)
model3 <- lm(Sepal.Width~Sepal.Length+Petal.Length,data=iris)
model4 <- lm(Petal.Length~Sepal.Length,data=iris)
model5 <- lm(Petal.Width~Sepal.Length,data=iris)
model6 <- lm(Petal.Length~Sepal.Length+Petal.Width,data=iris)
list(model1,model2,model3,model4,model5,model6) %>%
map(tidy)