Takes a list and applies to each of its elements a function, returning a list of outputs. Primary intended for tests of independence on a list of contingency tables.
Usage
lapplyTest(x, fun = chisq.test, ...)
Arguments
x
[list] The list to which to apply fun.
fun
[function] The function which to apply to data. Must return an object containing an element named p.value. Defaults to chisq.test.