Iterating over the lines of a data.frame with purrr
I sometimes have a function which takes some parameters and returns a data.frame as a result. Then I have a data.frame where each row of it is a set of parameters. So I like to apply the function to each row of the parameter-data.frame and rbind the resulting data.frames.
There are several ways to do it. Let’s have a look: