Re: How to combine 2 list

• To: mathgroup at smc.vnet.net
• Subject: [mg122613] Re: How to combine 2 list
• From: JasonE <ebaughjason at gmail.com>
• Date: Thu, 3 Nov 2011 03:46:42 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• References: <j8gnpp\$5h6\$1@smc.vnet.net>

```Here's my version:

In[67]:= Table[ { dateList [[i]], cumlativeNetProfitLoss [[i]] }, { i,
Length[dateList] } ]

Out[67]= {{{2011, 8, 31}, 1.11}, {{2011, 9, 2}, 2.07}, {{2011, 9, 6},
2.75}, {{2011, 9, 20}, 3.49}, {{2011, 9, 21}, 3.79}, {{2011, 9, 22},
10.2}, {{2011, 9, 28}, 11.03}, {{2011, 9, 30},
19.84}, {{2011, 10, 4}, 22.07}, {{2011, 10, 10}, 23.29}}

Jason Ebaugh

>
> {1.11, 2.07, 2.75, 3.49, 3.79, 10.2, 11.03, 19.84, 22.07, 23.29}
>
> and
>
> dateList = Reverse[dateNetProfitLoss[[All, 1]]]
> {{2011, 8, 31}, {2011, 9, 2}, {2011, 9, 6}, {2011, 9, 20}, {2011, 9, 21}, {2011, 9, 22}, {2011, 9, 28}, {2011, 9, 30}, {2011, 10, 4}, {2011, 10, 10}}
>
> How to I get:
>
> {{{2011, 8, 31}, 1.11}, {{2011, 9, 2}, 2.07}, {{2011, 9, 6}, 2.75}, {{2011, 9, 20}, 3.49}, {{2011, 9, 21}, 3.79}, {{2011, 9, 22}, 10.2}, {{2011, 9, 28}, 11.03}, {{2011, 9, 30}, 19.84}, {{2011, 10, 4}, 22.07}, {{2011, 10, 10}, 23.29}}
>