Let's say I have a list:
list=Table[{RandomReal[],RandomReal[],RandomReal[]}, {i,1,100}];
I'd like to make a new list based on conditions. Now I've seen that I should use the Select function, but I don't understand how to define the condition where selection should be based on some element of nested list.
Someone asked a similar question and the answer I like was:
data = {{0,2},{2,3},{4,3},{5,4},{8,4}};
filtered = Select[data, First[#]>3&];
However this only works if the condition is set on first element of sublist. In my case:
Select[list,0.2>First[#]>0.1&]
gives all members of the list where 1. element of sublist is between 0.1 and 0.2. But what if I wanted to make selection based on a second element of a sublist, or in general for the nth element?
Also an example with combination of elements would be nice, for example where the sum of first 2 elements of sublist is smaller than 0.5.