Below is the function used in my program. I have a huge data frame and I need to run a function such that I split the data frame in a number of parts as provided by parameter