[R] converting raster image
R. Michael Weylandt
michael.weylandt at gmail.com
Thu May 10 19:36:26 CEST 2012
write.csv() perhaps? I'm not sure what the csv of a raster image is though...
What does p look like? str(p) will be important -- if the raster codes
(RGB values) are in lists or 3D arrays or something more complex
(i.e., if no grayscale) you might need to put them in multiple files.
Hope this helps,
Michael
On Thu, May 10, 2012 at 11:12 AM, Mintewab Bezabih
<Mintewab.Bezabih at economics.gu.se> wrote:
>
> Dear R users,
>
> I was wondering how I can convert a raster image (that made R through interpolation) into an ascii or csv format?
>
> this is the last line of my command
>
> p <- interpolate(r, tpsfit)
>
> So p is my raster file which I want to convert into ascii or csv
>
> Many thanks
> Regards
> Mintewab
> ______________________________________________
> R-help at r-project.org 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.
More information about the R-help
mailing list