Replaced minDistToCells function by superior distToCells function, which contains minDistToCells but also allows the user to specify the "metric" parameter and therefore compute min, max, mean and median distances to cells of interest, while exactly mimicking the minDistToCells output when using metric="min"
Replaced minDistToCells function by superior distToCells function, which contains minDistToCells but also allows the user to specify the "metric" parameter and therefore compute min, max, mean and median distances to cells of interest, while exactly mimicking the minDistToCells output when using metric="min"