Skip to contents

The function calculates the euclidean distance from a provided origin point to provided end points. The origin and param parameters should be provided in a vector format.

Usage

Distance_Euclidean(df, origin, end)

Arguments

df

this is the data frame containing the latitude and longitude points to which the distance column will be binded to.

origin

this is a vector containing a single latitude and longitude point to be used as the origin point.

end

this is a matrix of latitude and longitude points to be used as the end points.

Value

The function returns df_new, a data frame that has the distance calculations appended in the distance_vector column.

Author

Harun Celik