title: Using R, how to calculate the distance from one point to a line?
body: <p>Suppose we have three points, a, b, c. b and c are linked to become a line. how to use R to calculate the distance from a to this line? Is there any function?</p>