Make sure that data is a data frame.

validate_distancedata(distance_data, max_distance)

Arguments

distance_data User's distance_data argument upper bound on all possible distances

Value

If no error is thrown, the column index for the distance data is returned. If no distance_data is supplied NULL type returned.