[R] Function to find angle between coordinates?

clair.crossupton at googlemail.com clair.crossupton at googlemail.com
Tue Sep 1 18:28:25 CEST 2009


Thank you very much, these were exactly what i needed!  :-)

C.C.

On 1 Sep, 14:08, "clair.crossup... at googlemail.com"
<clair.crossup... at googlemail.com> wrote:
> Dear all,
>
> I was doing some self study and was wondering if a function already
> exists which allows one to determine the angle between points.  e.g.
> given the following (x,y) coordinates
>
> input: (0,1); (0,0); (1,0)
>
> would result in:
>
> output: 90 degrees
>
> Best regards
> C.C.
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list