heights = 30 to 50
tall_heights = '= filter(heights, > 40)'
The result would return a subsection of the samples, just those that are greater than 40.
This seems a bit tricky because it may lead to conditions where there are no samples. One option for implementation would be to replace the 'filtered-out' samples with a variable like 'NaN' that our system would realize it shouldn't do math on. This means that the analysis mode would still work.