Skip to content
Prev 333032 / 398506 Next

Loop through columns of outcomes

Hello,

Once again, use lapply.

mlist <- lapply(seq_along(m2), function(i) m2[[i]])
names(mlist) <- paste0("mod", seq_along(mlist))

slist <- lapply(mlist, summary)

plist <- lapply(slist, `[[`, 'p.table')


Hope this helps,

Rui Barradas

Em 12-11-2013 13:28, Kuma Raj escreveu: