I've got two lists of dataframes: list_A and list_B. I want to take in consecutive dataframes from list_A and list_B and apply a custom function to them (my_function).
This works as desired:
my_function(list_A[[1]], list_B[[1]])
my_function(list_A[[2]], list_b[[2]])
...
However, I don't know how to do with lapply so that I don't have to type in the number each time (I have several hundred elements). Also, I would like the results to be written to one list.