I have performed a bootstrapping with 2.000 resamples of the Lee Carter model for mortality projection. The question is not specific for mortality studies, but on more general d
You may want to have a look at the purrr package and the family of map functions, or tidyr and the hoist funtion.
purrr
map
tidyr
hoist
(If you want code that works, you indeed need to provide some data!)