Romain Francois wrote:
Hello,

I'm not sure i got your question right, but i think the whole point is to find the equation of a line which passes by two points
See ?lm

Or see a basic geometry book, where you will find a formula such as:

 (x-x1)/(y-y1) = (x2-x1)/(y2-y1)

for the equation of a line passing through (x1,y1) and (x2,y2).

Just watch out for y2==y1 and the inevitable division by zero. Might be better to ask what you want the line for in order to find a representation that better suits your need - a single point and slope, perhaps.

Baz

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to