To simplify extracting elements from a list we can use the purrr
package and the pluck()
function.
https://github.com/qtalr/book/blob/b149ec7f2179d965c93cdd858b14006b3cd020a8/curate-datasets.qmd#L1106C22-L1106C22
This likely appears in other parts of the book too.