[R-sig-Geo] How to save weight matrix created in R?

Roger Bivand Roger.Bivand at nhh.no
Fri Oct 12 04:07:37 CEST 2012


On Thu, 11 Oct 2012, ria arinda wrote:

> I currently use this syntax. I intend to save object X as a weight matrix in
> my computer directory so I could use it in Geoda, but I still don't know how
> to do it. Anyone could help me? I'd really appreciate it.
>
>> file_shp <- readShapePoly('indonesia.shp')
>> X <- poly2nb(file_shp, queen=T)
>

?write.nb.gal

The GAL format is the one used by many spatial statistics applications.

Roger

>
>
> -----
> Ria Arinda
> Jakarta Institute of Statistics, Indonesia
> Tel:  +62 856 1675312
> --
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/How-to-save-weight-matrix-created-in-R-tp7581256.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> 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