Looping over multiple datasets

Hi, can you provide a reproducible example of what one of the datasets look like?

Also, using the purrr or apply functions will be faster than a for loop.