
Dear Rsig community,

I'm quite new to R-sig. Here's my problem :

I have a set of polygons representing Canada's ecodistricts. Although the great majority of polygons are contiguous, few are "isolated" from the main "polygon mass". I created a nb object using the poly2nb function. When I use the snap function (let say 60 km), it links all polygons together, without leaving unconnected subgraphs. Obviously, this also create additionnal links between polygons that are not "really" contiguous INSIDE a given subgraph. I would like to keep only the additionnal links that connect the subgraphs together using a threshold distance (60 km).

My question is : is it possible to connect subgraphs that are isolated from each other by a certain threshold distance without doing it manually ? 

Thanks in advance,

Yan  

Yan Boulanger 
Dendrolab - Datation de bâtiments patrimoniaux par dendrochronologie
www.dendrolab.ca
info@dendrolab.ca

 

Université du Québec à Rimouski 
Département de Biologie 
Centre d'études nordiques 
300, allée des Ursulines 
Rimouski, PQ G5L 3A1 
(418) 723-1986 poste 1482
 

 		 	   		  
	[[alternative HTML version deleted]]

