I have a list of lists. There are large number of elements in the list (I am showing here just a minimal example). I want to extract elements $d$ and $e$ from the data. So, I have to count at what position $d$ and $e$ are.
Is there any efficient way to do this without counting positions of elements manually? Can we label these elements and use those labels instead of using their positions?
a = RandomReal[{1, 100}, 10];
b = RandomReal[{1, 100}, 10];
c = RandomReal[{1, 100}, 10];
d = RandomReal[{1, 100}, 10];
e = RandomReal[{1, 100}, 10];
f = RandomReal[{1, 100}, 10];
data = Table[{a[[i]], b[[i]], c[[i]], d[[i]], e[[i]], f[[i]]}, {i, 1, 10}];
data1 = data[[All, {5, 6}]];
Transpose
. It allows a more compact treatment:data = Transpose @ { a, b, c, d, e, f };
is equivalent to your proceduralTable
statement. $\endgroup$ – gwr Apr 9 '17 at 10:35