Explaining by example:
I have two list objects, List A and List B.
Each list has same index range, from 1:100.
I want to apply a function to 'like' elements within each list - e.g.,
function of (a submatrix within A[[1]] and a submatrix within B[[1]]) gives
--> result1
function of (a submatrix within A[[2]] and a submatrix within B[[2]]) gives --> result2
...
function of (a submatrix within A[[100]] and a submatrix within B[[100]]) gives --> result100
As far as I can tell:
-- lapply isn't appropriate (it only applies a function to one list);
-- mapply isn't appropriate either (applies a function to multiple lists, but the function illustrated here takes in the 'like' elements of multiple lists);
I could pain you with other failed approaches, but instead I'll thank you in advance for any insights! :)