Looping over a command

If the output of that function is a dataframe or it can be coerced to one, you can use purrr::map_dfr()

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.