I have an array. It has lat,lon,time,and value. Time starts from 1 to 300. Here is part of array for time=1.
myarray[,,1] lon
One way is
for (i in 1:300) { write.table(myarray[,,i],file=""myarray.i.csv"",append=TRUE,sep=",",col.names=TRUE,row.names=TRUE) }