Is there a way to write a frequency function to calculate the frequency of "value1" only if "lot" is equal to "select_lot"?
bin frequency value1 lot select_lot
90 ? 93 4 4
91 ? 92 5
92 ? 90 4
93 ? 91 4
94 ? 92 5
95 ? 95 5
96 ? 99 5
97 ? 96 4
98 ? 96 5
99 ? 90 4
100 ? 93 5
bin frequency value1 lot select_lot
90 ? 93 4 4
91 ? 92 5
92 ? 90 4
93 ? 91 4
94 ? 92 5
95 ? 95 5
96 ? 99 5
97 ? 96 4
98 ? 96 5
99 ? 90 4
100 ? 93 5