Thanks for the help, this worked great! Much appreciated. -- View this message in context: http://r.789695.n4.nabble.com/How-to-apply-a-function-to-a-multidimensional-array-based-on-its-indices-tp4629940p4630068.html Sent from the R help mailing list archive at Nabble.com.