Skip to content
Prev 295543 / 398502 Next

applying cbind (or any function) across all components in a list

On May 24, 2012, at 12:49 PM, Hans Thompson wrote:

            
Well, it's not clear what "function" you want applied to "what". In  
fact, it's even less clear in this posting than it was in your first  
one (since you assume, incorrectly, that we are looking at this on  
Nabble. Readers of this list expect you to include context.)  I could  
not figure out in your first posting how we should be considering the  
fourth expression

   {(l1[[1]][,3]+l2[[1]][,2])/2 }

... to be an "average" of anything since its indices do not match?  
Perhaps equivalently, why should a 2 x 3 structure merged <somehow> to  
a 2 x 2 structure yield a 2 x 4 structure?