R/get.distance.R

Defines functions get.distance

get.distance <-
function(start,destination, dist.matrix){
  row <- which(rownames(dist.matrix) == start)
  col <- which(colnames(dist.matrix) == destination)
  return(dist.matrix[row,col])
}
gryslik/SpacePAC documentation built on May 4, 2019, 3:13 a.m.