Skip to content
Prev 5900 / 398506 Next

Getting a vector of list component components...

Dear all,

I have a list of htest objects, and I want a vector of e.g. p.values. Is
there a simple way of doing this...?
I got the desired result with 
apply(cbind(1:1000), 1, function(i) chisq1M11[[i]]$p.value)
but it doesn't seem very elegant to me... I was thinking along the lines
of chisq1M11[[]]$p.value, chisq1M11[[1:1000]]$p.value or something like
that.... Or using attach() in some way, or...

Best,

Kjetil