Re: List Manipulation
- To: mathgroup at smc.vnet.net
- Subject: [mg63481] Re: [mg63478] List Manipulation
- From: gardyloo <gardyloo at mail.wsu.edu>
- Date: Tue, 3 Jan 2006 01:24:34 -0500 (EST)
- References: <200601021049.FAA01354@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hullo, LectorZ, RowJoin should do what you want! In[1]:= Needs["Statistics`DataManipulation`"] In[2]:= list1 = {{a, b, c, d}, {e, f, g, h}}; list2 = {{1}, {2}}; In[4]:= Information["RowJoin", LongForm -> False] "RowJoin[data1, data2, ...] joins elements in \ corresponding rows in the datai."* Button[More\[Ellipsis], ButtonData :> "Statistics`DataManipulation`", Active -> True, ButtonStyle -> "AddOnsLink"] In[5]:= list3 = RowJoin[list1, list2] Out[5]= {{a, b, c, d, 1}, {e, f, g, h, 2}} In[6]:= $Version Out[6]= "5.2 for Linux (June 20, 2005)" LectorZ wrote: >Hi guys, > >One simple question to list manipulation. > >I have 2 lists > >list1 = {{a,b,c,d},{e,f,g,h}} >list2 = {{1},{2}} > >Which function(s) should I use to get > >list3 = {{a,b,c,d,1},{e,f,g,h,2}} > >Thanx in advance > >LZ >
- References:
- List Manipulation
- From: "LectorZ" <lectorz@mail.ru>
- List Manipulation