[R-sig-Geo] readAsciiGrid (maptools) 2

Ingo Holz Ingo.Holz at uni-hohenheim.de
Tue Nov 13 14:34:22 CET 2007


Hi again,

 OK, it is not a problem of readAsciiGrid (maptools)!

 However:

 x <- 3539000.5 : 3540000.5   ## OK, readAsciiGrid adds .5 to the coordinates
 length(x)
 x[1:10]
 min(x)                       ## OK, this is the rounded value
 summary(x)                   ## I still do not understand this
 summary(1:1001)

 I get the following results:

> x <- 3539000.5 : 3540000.5   ## OK, readAsciiGrid adds .5 to the coordinates
> length(x)
[1] 1001
> x[1:10]
 [1] 3539001 3539002 3539003 3539004 3539005 3539006 3539007 3539008 3539009 
3539010
> min(x)                       ## OK, this is the rounded value
[1] 3539001
> summary(x)                   ## I still do not understand this
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
3539000 3539000 3540000 3540000 3540000 3540000 
> summary(1:1001)
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
      1     251     501     501     751    1001 
> 

Ingo




More information about the R-sig-Geo mailing list