Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ID = c('1','2','3','4','5','6','7')
- x = c(1,2,4,5,1,3,1)
- y = c(3,5,6,3,1,5,1)
- df= data.frame(ID,x,y)
- length = sqrt((x1 - x2)^2+(y1 - y2)^2).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement