Hello jim, thank you for your quick answer!

Here is an example:

      *TIME1*    *DATA1*      *TIME2      DATA2*
2   14:38:00  1.07212     14:38:00  1.51339
3   *14:40:00  1.07195     14:39:00  1.51330*
4   14:41:00  1.07218     14:40:00  1.51335
5   14:42:00  1.07246     14:41:00  1.51326
6   14:43:00  1.07229     14:42:00  1.51310
7   14:45:00  1.07226     14:45:00  1.51310
8   *14:46:00  1.07205     14:48:00  1.51357*
9   14:47:00  1.07078     14:49:00  1.51375
10  14:48:00  1.07155     14:50:00  1.51359
11  14:49:00  1.07184     14:51:00  1.51406
12  14:50:00  1.07114     14:52:00  1.51458

And I would like to get from this only one matrix, with the matching time
and the corresponding data.
Of course, some rows from one or another matrix will have to be removed.

Thank you very much again for your help!

Loïc.


2010/3/18 jim holtman <jholtman@gmail.com>

> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
> example data would be useful.
>
> Try 'merge' and the post processing of the data, but with no data, no idea
> of what that might entail.
>
> On Thu, Mar 18, 2010 at 12:40 PM, Loïc Marechal <lym.marechal@gmail.com>wrote:
>
>> Dear R users,
>>
>> I am experiencing a problem, I am trying to merge two matrices composed
>> like
>> this:
>>
>> Matrix1 :
>>
>> Col1 datetime  // Col2 Data1
>>
>> Matrix2:
>>
>> Col1 datetime // Col2 Data2
>>
>> The datetime are matching most of the time, but on both matrices, there
>> are
>> some values missing, and this generates a gap, so the two matrices don't
>> match.
>> Do you know which function I could use/create in order to make one matrix
>> out of this, like:
>>
>> Matrix:
>>
>> Col1 = datetime // Col2 = Data1 // Col3 = Data2
>>
>> Thank you very much for your help,
>>
>> Loďc.
>>
>>        [[alternative HTML version deleted]]
>>
>>
>>
>> ______________________________________________
>> 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<http://www.r-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
>
> --
> Jim Holtman
> Cincinnati, OH
> +1 513 646 9390
>
> What is the problem that you are trying to solve?
>

	[[alternative HTML version deleted]]

