I have list of statistical objects from which I would like extract p-values.
The question is similar to the results of this function:
ls.stests <- apply(mtcars, 2, shapiro.test)
I would like to end up with is vector resembling (preferably without using a loop, but hey):
0.1229, 6.058e-06, 0.02081...
I have tried the following:
ls.stests[[1:14]$p.value], ls.stests[[, "p.value"]]