MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: union table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108165] Re: [mg108120] union table
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 9 Mar 2010 06:26:30 -0500 (EST)
  • Reply-to: hanlonr at cox.net

data1 = Array[a, {5, 3}];

data2 = Array[b, {5, 6}] /. b[x_, 5] -> a[x, 3];

Transpose[DeleteDuplicates[Transpose[Join[data1, data2, 2]]]]


Bob Hanlon

---- maria giovanna dainotti <mariagiovannadainotti at yahoo.it> wrote: 

=============

Dear Mathgroup,
I need to join two table in which one column should be the same. And if it is not the same at the same position I would like to find the way that Math can match the column when for example the tenth column of the first table should be the same of the forth column of the second table.

AI could do also with a do operation but the lenght of the table can be also different.

Is there a more general method to figure out this problem?
for example with union Union[{DataFitend},{DataFitLx}] 
it returns all the table instead I would like to eliminate one column that it is the same.
how can i do?
Thanks a lot
Maria      



  • Prev by Date: Re: ReplaceRepeated in case of non ordered expressions
  • Next by Date: Re: Getting nice PlotMarkers, and some more ListPlot styling
  • Previous by thread: Re: union table
  • Next by thread: Re: union table