[R] apply over parallel lists and their elements

Sebastian Gibb lists at sebastiangibb.de
Sun Sep 12 16:37:02 CEST 2010


Hello,

thanks for your answer.
mapply fits to my needs.
But I don't know how many items would "tree" have. I can't write them all by 
hand.
How can I generate the arguments for mapply?

mapply(mean, tree[[1]]$node$values, tree[[2]]$node$values, ... 
tree[[k]]$node$values);

Kind regards,

Sebastian



More information about the R-help mailing list