[R-sig-Geo] Error with SpatialPoints to PPP conversion

Roger Bivand Roger.Bivand at nhh.no
Thu Aug 9 22:13:44 CEST 2007


On Thu, 9 Aug 2007, Andrew Niccolai wrote:

> Greetings all,
>
> I recently upgraded from R-2.4.1 to R-2.5.1 on Windows XP OS.  Now when I
> run my application (literally thousands of lines of code), I crash whenever
> I had code using the names() function.  The error message is the following:
>
> Error in names(argue) : no applicable method for "names"
>
> I have been slowly rewriting my code to change names() lines to
> namesfix <- attr(df.in.question,"names").
>
> This seems to work OK, but I just ran into this issue on a bit of code that
> worked perfectly in R-2.4.1, which converted a SpatialPoints class to a PPP
> class:
>
> centroid.ppp <- as.ppp(centroid.pt)
> Error in names(argue) : no applicable method for "names"
>
> This I can't easily fix.  Is this universal or did I screw something up in
> the R-2.5.1 install?
>

Andrew,

Could you provide examples of data objects that trigger the problem 
(save() as an .RData file), and I'll have a look. sessionInfo() of your 
system would also help.

Roger

>
> Thanks,
> Andrew
>
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, 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