This zipped folder contains 6 files, 2 .RData files and 4 .R scripts. These files enable the reader to 1) View and plot data from the final analyses, and 2) Run individual-based popualtion projections, from the manuscript entitled "Long-term trends in wild-capture and population dynamics point to an uncertain future for captive elephants."