I am a beginner and find it very difficult to write a function in R. I have a dataset with 61 rows and 20 columns. This is the preview of the dataset
I want to write