The following is what my sample input and output data should look like. Basically, I am looking to pick the bottom 1 percentile records from several groups of columns using an apply function in R. The selection is based on minimum in a.1, b.1 and c.1 columns in my sample data respectively.The following is what my sample input and outpu