Re: [R] finding the intersection of two vectors

2011-07-07 Thread Barry Rowlingson
On Wed, Jul 6, 2011 at 9:43 PM, Data Analytics Corp. wrote: > close enough.  I can't figure out how to find the price value at which the > two curves intersect.  Going back to the economics interpretation, I want > the price where supply equals demand.  Any suggestions as to how I can find > that

Re: [R] finding the intersection of two vectors

2011-07-07 Thread Rolf Turner
On 07/07/11 08:43, Data Analytics Corp. wrote: Hi, Suppose I have two vectors, not necessarily the same length (in fact, they usually are different lengths): y.1 that has increasing values between 0 and 1; y.2 that has decreasing values between 1.0 and 0. You can picture these as being suppl

Re: [R] finding the intersection of two vectors

2011-07-07 Thread peter dalgaard
On Jul 6, 2011, at 23:50 , David Winsemius wrote: > > On Jul 6, 2011, at 4:43 PM, Data Analytics Corp. wrote: > >> Hi, >> >> Suppose I have two vectors, not necessarily the same length (in fact, they >> usually are different lengths): y.1 that has increasing values between 0 and >> 1; y.2 th

Re: [R] finding the intersection of two vectors

2011-07-06 Thread David Winsemius
On Jul 6, 2011, at 4:43 PM, Data Analytics Corp. wrote: Hi, Suppose I have two vectors, not necessarily the same length (in fact, they usually are different lengths): y.1 that has increasing values between 0 and 1; y.2 that has decreasing values between 1.0 and 0. You can picture these

[R] finding the intersection of two vectors

2011-07-06 Thread Data Analytics Corp.
Hi, Suppose I have two vectors, not necessarily the same length (in fact, they usually are different lengths): y.1 that has increasing values between 0 and 1; y.2 that has decreasing values between 1.0 and 0. You can picture these as being supply (= y.1) and demand (= y.2) curves from econom