From the baseballr package
batting_orders <- map_dfr(games, get_batting_orders)
So the games is a vector for every unique game, and I was wondering if I could attach each game ID that I'm giving as an input in map_dfr, to the outputting dataframe.
I tried to create a function, but it wont take a vector as an input.