[R-sig-Geo] spGRASS6 issue

Roger Bivand Roger.Bivand at nhh.no
Wed Feb 6 12:55:04 CET 2013


On Wed, 6 Feb 2013, R.S. Bhalla wrote:

> Dear List,
> I have run into trouble with the execGRASS command copied below and can't 
> figure out what I'm doing wrong.
> It runs fine without the size=11 argument (takes the default value of 3). Can

> storage.mode(11)
[1] "double"
> is.integer(11)
[1] FALSE
> is.integer(11L)
[1] TRUE

Just because it looks like an integer, it doesn't mean it is.

Roger

> someone please help.
> Thanks in advance,
> Ravi
>
> Command:
> execGRASS("r.neighbors", parameters=list(input=patmap, output=n11map, 
> method="median", size=11), flags=c("overwrite", "c"))
>
> Error:
> Error in doGRASS(cmd, flags = flags, ..., parameters = parameters, echoCmd = 
> echoCmd) :
>  Parameter <size> does not have integer value
>
>

-- 
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