I am writing a function where one of the input is a condition. See the following example
sample data set
ab <- matrix(1:100, ncol = 5)