In the below example, I would like to use tidyverse to create a list-column of codes for each carrier. So the dataset would end up with each row being on an airline basis, and a column for the carrier and a list-column for the flights
Depending on how you will use the list, you may want to stop at nest_by(). It gives a list column of tibbles while unnest_wider() has a list of vectors.