I have 50 lm and glm objects in R. I want to get the summary of all of them without having to type summary(lm...) 50 times. Is there a quick way to do it? The names of the dataset begin the same way: lin.mod.t# or lin.mod.s# where {# = 1,2,...,25}. I can list all the models using
ls(pattern = "lin.mod")
objects(pattern = "lin.mod")
But I cannot run summary for the outcomes of using ls or objects. I used summary(eval(parse(text = ls(pattern = "lin.mod")))), but this only runs the first one. Any suggestions? Maybe use lapply?