Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
distance calculation
how can you use R to calculate the distance between two points in a data frame, I've 4 columns start.lon, start.lat, end.lon, end.lat
1 answers ( 0 marked as helpful)
Hi Doaa,
thanks for reaching out! You can calculate the absolute distance between points, like so:
df$Absolute_Distance<-abs(df$start.Ion-df1$end.Ion)
Hope this helps!
Best,
365 Eli