# Find the length of a road in R

Question I have a dataframe df which contains cartesian coordinates of a hypothetical road. I want to find the length of the road. Following is a plot: library(ggplot2) ggplot(df) + geom_point(aes(x, y2)) My attempt to find the length: I tried converting df to an sf object and then find length, but it didn’t work as… Read More Find the length of a road in R