Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14577
| From | BBabic <bipsich101@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Average the same elements of the list |
| Date | 2013-05-23 07:19 +0000 |
| Message-ID | <knkfuv$ho0$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
Hello,
I have list which is something like
data={
{{a1,b1,c1},d1},{{a2,b2,c2},d2}}
I would like to get new list which gets average of the second elements if the first elements in the sublists are all the same.
Namely if a1=a2,b1=b2,c1=c2
new list would look like
datanew={{a1,b1,c1},Mean[{d1,d2}]
Is there an elegant way to do this ?
Thanks!
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Average the same elements of the list BBabic <bipsich101@gmail.com> - 2013-05-23 07:19 +0000
csiph-web