Thank you @ballardw. When I added cutoff (used 110 in my program) in the function, I wanted to see if the code can run faster. And it did, from hours to 30 mins, due to large data sets. If use a larger cutoff value, first the issue might still exist, second will decrease the efficiency.
... View more