A boolean of TRUE or FALSE. Default is FALSE which will
augment the distance to the data frame. TRUE will return a vector of the distances
as the return.
Author
Steven P. Sanderson II, MPH
Details
A function to calculate the Euclidean distance between two vectors. It uses
the formula sqrt((x - lag(x))^2 + (y - lag(y))^2). The function uses augments
the data frame with a new column called distance.