# NOT RUN {
# path from case 1 to nearest pump.
# walkingDistance(1)
# path from case 1 to nearest pump in meters (appox).
# walkingDistance(1, unit = "meter")
# path from case 1 to pump 6.
# walkingDistance(1, 6)
# exclude pump 7 from consideration.
# walkingDistance(1, -7)
# path from case 1 to case 6.
# walkingDistance(1, 6, type = "cases")
# path from pump 1 to pump 6.
# walkingDistance(1, 6, type = "pumps")
# Plot result
# plot(walkingDistance(1, unit = "meter"))
# }
Run the code above in your browser using DataLab