[R-sig-Geo] command "over" works in windows and not linux

Roger Bivand Roger.Bivand at nhh.no
Wed Apr 24 08:44:20 CEST 2013


On Wed, 24 Apr 2013, kapo coulibaly wrote:

> I'm running the following script:
>
> # Reading shapefiles
> grd.shp<-openshape()
> reaches.shp<-openshape()
> grd.shp->grd2.shp
>
> # Creating a subset of the grid around the reaches exttent
> sub.ind<-over(grd.shp,reaches.shp)
>
> In linux slackware 13.37 x64 running R-2.15.2 I get the error:
>
> Error in function (classes, fdef, mtable)  :
>  unable to find an inherited method for function "over", for
> signature "SpatialPolygonsDataFrame", "SpatialLinesDataFrame"
>
>
> But in windows 7 x64 with R-2.15.1 it works flawlessly
>
> Thanks
>
> 	[[alternative HTML version deleted]]

NO HTML please!

In addition to the other problems with your posting, careful attention to 
differences in sessionInfo() on the two systems would certainly show that 
package versions, or the loaded packages, differ. It is really worth 
running sessionInfo() in comparative situations like this, as packages do 
behave differently between versions, as well as differently if a 
"suggested" package is available or not.

Roger

>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list