Hello! I'm very new to Mathematica and I am trying to extract elements of a nested list based on whether their average value is above a certain threshold.
Given a nested list:
j = {{5,2,3},{2},{1,4,5},{1,1,2},{1,2,4}}
I'd like to only retain lists with average values above 3, and eliminate everything else (while keeping the structure of the list). I thought using something along the lines of:
f = DeleteCases[j, Map[Mean, j, {2}] < 3, {2}]
But it's not working out. Any help would be greatly appreciated. What I would be looking for is to get a final form of
f= {{5,2,3},{1,4,5}}