Hi all,

I'm looking for a function which would allow to compute on a matrix the id
of the closest point according to a matrix of cost. I've used
gdistance::accCost() to get the cost, but I need to relate that cost to
points. A good description of the function I'm looking for would be from
ESRI Cost Allocation tool [1]. I couldn't find an equivalent function in R.

[1]
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Cost_Allocation/009z00000016000000/

Etienne

	[[alternative HTML version deleted]]

