Many thanks, Jim...

On 7/31/07, jim holtman <[EMAIL PROTECTED]> wrote:
>
> Then you can just write a 'for' loop to write out each submatrix:
>
> for (i in 1:dim(x)[3]){
>     write.csv(x[,,i], paste("x", i, ".csv", sep=""))
> }
>
>
> On 7/30/07, Dong GUO ¹ù¶« <[EMAIL PROTECTED]> wrote:
> > the dim of my results is (26,31,8) -(years, regions and variables). so,
> if i
> > save each (years, regions) in 8 csv files, later, I could connect the
> > (26,31) to dbf file in ArcGIS to show in a map. This is what I intend to
> do.
> >
> > I dont know a better way to do it directly in R...
> >
> >
> > On 7/31/07, jim holtman <[EMAIL PROTECTED]> wrote:
> > > It really depends on how you want it output.  You can use 'write.csv'
> > > to write an array out and it will be a 2-dimentional image that you
> > > could then reconstruct it from if you know what the dimensions were.
> > > What do you want to do with the data?  If you are just going to read
> > > it back into R, then use save/load.
> > >
> > > On 7/29/07, Dong GUO ¹ù¶« < [EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I want to save an array(say, array[6,7,8]) write a cvs file. How can
> I
> > do
> > > > that??? can I write in one file?
> > > >
> > > > if I could not write in one file, i want to use a loop to save in
> > different
> > > > files (in the array[6,7,8], should be 8 csv files), such as the
> filename
> > > > structure should be: file ="filename" +str(i) +"." +"csv"
> > > >
> > > > Many thanks.
> > > >
> > > >        [[alternative HTML version deleted]]
> > > >
> > > > ______________________________________________
> > > > R-help@stat.math.ethz.ch mailing list
> > > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > > > and provide commented, minimal, self-contained, reproducible code.
> > > >
> > >
> > >
> > > --
> > > Jim Holtman
> > > Cincinnati, OH
> > > +1 513 646 9390
> > >
> > > What is the problem you are trying to solve?
> > >
> >
> >
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem you are trying to solve?
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to