Skip to content
Prev 234437 / 398500 Next

apply over parallel lists and their elements

On Sep 13, 2010, at 5:20 PM, Liviu Andronic wrote:

            
The second argument to mean is trim. I am not sure what mean(1, 3) is  
supposed to do but what it return is 1. If you wanted 2,3,4 ..., 11  
then you would perhaps do:

mean( mapply(c, tree[[1]]$node$values, tree[[2]]$node$values) )