You mean like a linear regression?
?lm

You might benefit from reading at the very least An Introduction to R
and the posting guide to this list.

Sarah


On Fri, Apr 27, 2012 at 5:08 PM, Hans Thompson <hans.thomps...@gmail.com> wrote:
> I meant (1,1) as an (x,y) coordinate.  I am trying to find the function to
> return the coefficient of the line running through:
>
>>B
>    x  y
> a  1  1
>
> and all the points in:
>
>>A
>     x   y
> a  1   3
> b  2   2
> c  3   1
>
> hope that is more clear.  Thanks again Rui.
>
-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to