Lets say I have six matrices of size 50*5 stored in an array, e.g.,
my.array<-array(1:1500, dim=c(50,5,6))
and want to save these as multiple tables in the same .tex-file. i.e., I want the final result to be a tex-file with six separate latex tables without having to manually having to save each matrix and then copy them into a single .tex-document. What is the best way to do this, preferably using xtable?