[R] Returning the coef from two coordinates
Sarah Goslee
sarah.goslee at gmail.com
Fri Apr 27 23:35:02 CEST 2012
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.thompson1 at 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
More information about the R-help
mailing list