thanks!<br><br><br><br><div><span class="gmail_quote">On 6/27/07, <b class="gmail_sendername">Roger Bivand</b> <<a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 27 Jun 2007, Carlos "Guâno" Grohmann wrote:<br><br>> Hello, I'd like to make some correlation matrix for raster maps in R.<br>> I tried to<br>>> map1<-readRAST6("lageado_10k_fisher_K_15x15")
<br>>> map2<-readRAST6("lageado_10k_fisher_K_25x25")<br>>> cor(map1,map2)<br>> Error: is.atomic(y) is not TRUE<br>><br>> What is my mistake? I can' make cor() with SpatialGridDataFrame?
<br>> Can I make it with several maps at once?<br><br>The imported objects are *not* vectors, but SpatialGridDataFrames. Can I<br>suggest:<br><br>map <- readRAST6(c("lageado_10k_fisher_K_15x15",<br> "lageado_10k_fisher_K_25x25"))
<br>summary(map)<br>cor(as(map, "data.frame"))<br><br>Roger<br><br>><br>> BTW, the maps have the same size, resolution, etc.<br>> thanks<br>><br>> Carlos<br>><br>><br>><br><br>--<br>Roger Bivand
<br>Economic Geography Section, Department of Economics, Norwegian School of<br>Economics and Business Administration, Helleveien 30, N-5045 Bergen,<br>Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43<br>e-mail: <a href="mailto:Roger.Bivand@nhh.no">
Roger.Bivand@nhh.no</a><br></blockquote></div><br><br clear="all"><br>-- <br>+-----------------------------------------------------------+<br> Carlos Henrique Grohmann - Guano <br> Visiting Researcher at Kingston University London - UK
<br> Geologist M.Sc - Doctorate Student at IGc-USP - Brazil<br>Linux User #89721 - carlos dot grohmann at gmail dot com<br>+-----------------------------------------------------------+<br>_________________<br>"Good morning, doctors. I have taken the liberty of removing Windows 95 from my hard drive."
<br>--The winning entry in a "What were HAL's first words" contest judged by 2001: A SPACE ODYSSEY creator Arthur C. Clarke