Re: [R] comparison of two vectors

2007-12-04 Thread Ben Bolker
Daniel Stepputtis wrote: > > Dear Ben, > I was searching for the same problem. Thank you very much, it helped me a > lot and I will use it quite often! > > In addition to the problem given by tintin_et_milou. I have to compare a > two pairs of vectors. > > I.e. I have two datasets each with l

Re: [R] comparison of two vectors

2007-12-04 Thread Daniel Stepputtis
Dear Ben, I was searching for the same problem. Thank you very much, it helped me a lot and I will use it quite often! In addition to the problem given by tintin_et_milou. I have to compare a two pairs of vectors. I.e. I have two datasets each with latitude and longitude (which defines the geo

Re: [R] comparison of two vectors

2007-12-03 Thread Ben Bolker
tintin_et_milou wrote: > > Thanks for your help, but there is some more problem. The two vectors have > not the same length so there is a problem with cbind. I give you an > example. My first vector is > > >g[g[,1]>2035 & g[,1]<2050,] > > M.Z Intensity > 2035.836 652.9494 > 20

Re: [R] comparison of two vectors

2007-12-03 Thread tintin_et_milou
Thanks for your help, but there is some more problem. The two vectors have not the same length so there is a problem with cbind. I give you an example. My first vector is >g[g[,1]>2035 & g[,1]<2050,] M.Z Intensity 2035.836 652.9494 2035.939 664.5841 2036.043 696.0554 2036.14

Re: [R] comparison of two vectors

2007-12-03 Thread Ben Bolker
tintin_et_milou wrote: > > Hello, > > I have a vector of two columns like this: > m/ZI > 1000.235 125 > 1000.356 126.5 > > ... > > and a second vector with only one column: > m/Z > 995.547 > 1000.320 > ... > > For each value of the second vector I want to as