Re: Convert 2D table to 1D list
- To: mathgroup at smc.vnet.net
- Subject: [mg103547] Re: [mg103536] Convert 2D table to 1D list
- From: "Kurt TeKolste" <tekolste at fastmail.us>
- Date: Sun, 27 Sep 2009 23:05:14 -0400 (EDT)
- References: <200909271131.HAA05010@smc.vnet.net>
If you want to consider your array to be just a set, i.e. to forget the
row/column indices, then Flatten is your function :
In[1]:= Flatten[{{1115.67, 1169.42, 1243.33, 1270.6}, {1169.39, 1220.86,
1261.8,
1173.26}, {1133.4, 1173.71, 1168.89, 1174.48}}]
Out[1]= {1115.67, 1169.42, 1243.33, 1270.6, 1169.39, 1220.86, 1261.8,
1173.26, \
1133.4, 1173.71, 1168.89, 1174.48}
On Sun, 27 Sep 2009 07:31 -0400, "canopus56" <canopus56 at yahoo.com>
wrote:
> I have a 2D table that I would like to use descriptive statistics on,
> e.g. median, stddev, histogram, etc.
>
> How do I convert the 2D table into a 1D list that can be operated on
> by descriptive statistics on all the elements in the 2D table?
>
> Thanks - Kurt
>
> =================
> The data
> =================
>
> In[127]:= tabROLOROI2
> Out[127]= {{1115.67,1169.42,1243.33,1270.6},
> {1169.39,1220.86,1261.8,1173.26},{1133.4,1173.71,1168.89,1174.48}}
>
> In[129]:= TableForm[tabROLOROI2]
> Out[129]//TableForm=
>
> 1115.67 1169.42 1243.33 1270.6
> 1169.39 1220.86 1261.8 1173.26
> 1133.4 1173.71 1168.89 1174.48
>
>
>
Regards,
Kurt Tekolste
- References:
- Convert 2D table to 1D list
- From: canopus56 <canopus56@yahoo.com>
- Convert 2D table to 1D list