[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-geo
Subject:    [R-sig-Geo] use nbcosts() with geographic openstreetmap distance as weights
From:       Germán_Gallego_via_R-sig-Geo <r-sig-geo () r-project ! org>
Date:       2021-08-04 23:20:44
Message-ID: 1905185310.2804806.1628119244464 () mail ! yahoo ! com
[Download RAW message or body]

I am conducting a study of Regionalization for the Ministry of Health of Co=
lombia, using a MST and SKATER algorithm proposed by Assauncao. I have incl=
uded 121 social and health covariates sumarized on a SImilarity matrix (Aft=
er Explratory Factor analysis dimensiionality treatment).=C2=A0 that will b=
e used into skater function.
I am using a spatialpolygons dataframe with the 1081 municipalities=C2=A0 t=
hat I've proccesed with nb2list() function. Also I have the geographic dist=
ance=C2=A0 (extracted from openstreetmaps) from each capital city to anothe=
rone, and I want to use it in nbcosts() function.=C2=A0 When=C2=A0 I read t=
he nbcosts documentation I read that the data must be in dataframe class ob=
ject but what i have is a dist object. The code does not show any error but=
 im not sure how the dist object is computing it.
> ady <- poly2nb(colpeso.utmsub)

> adycostsdist <- nbcosts(ady,distkmat1)

> class(distkmat1)
[1] "dist"
I suppose that I have to covert a dist object into a nbdist object? or find=
 the way to use it properly into nbcost function,=C2=A0
I'll apreciate your opinion on this.=C2=A0
Thank you in advance

	[[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic