Thanks David. I have actually 1 more question. How do I assign a name to the output created by this function? Cheers, B -- View this message in context: http://r.789695.n4.nabble.com/specific-matrix-element-tranformation-tp4640550p4640680.html Sent from the R help mailing list archive at Nabble.com.