cst.dst.frame <- get.distance.matrix(study.area.binary.extended,
locations.receivers)
Error in costDist[] <- shortestPaths[index, index] :
replacement has length zero
In addition: Warning message:
In .cd2(x, fromCoords) :
Show Traceback
Rerun with Debug
Error in costDist[] <- shortestPaths[index, index] :
replacement has length zero
> However, [..] I had to create the line-shapefile myself. [..] for the River Mondego I didn't have a proper shapefile, so created it myself. These generated shapefiles only have an 'ID' number. @damianooldoni any thoughts on how to proceed with this? The line-shapefiles from other rivers also need manual additions in GIS.
From @PieterjanVerhelst 's https://github.com/inbo/fish-tracking/issues/62#issuecomment-721046437:
Rerun with Debug Error in costDist[] <- shortestPaths[index, index] : replacement has length zero