
Student Support Forum: 'Table, rank, sort' topicStudent Support Forum > General > "Table, rank, sort"
| Author |
Comment/Response |
ray
|
12/24/10 01:48am
I can't seem to figure out how to get "Table" to list the "elements" only once in the first column of the grid.
Also, is there an easy way to 'rank' and then 'sort' output in the grid ???
vals = Table[{#,
ElementData[#, b]}, {b, {"HumanAbundance", "OceanAbundance",
"UniverseAbundance"}}] & /@ ElementData[];
Text[Grid[
Prepend[vals[[1 ;; 118]], {"Element", "Human Abundance",
"Ocean Abundance", "Universe Abundance"}], Frame -> All,
Background -> {None, {{{LightBlue, White}}, {1 -> LightYellow}}},
Alignment -> Left]]
URL: , |
|
| | | |
 | |
|