Introduction to Forestry Data Analysis with R
Preface
The role of the forester and natural resource professional has expanded. Data, analysis, and interpretation are now more central to our work than ever before, and today’s practitioners are expected to move confidently between field measurements and analytical workflows. With unprecedented volumes of information on forested systems produced through inventories, sensor networks, remote sensing platforms, and long-term monitoring programs, practitioners are increasingly called upon to act as data analysts—wrangling, visualizing, and defending quantitative results in support of sound management decisions.
This book is for readers on two paths: students beginning their analytical training and practitioners who want to modernize and streamline their workflows. Our goal is to help you build proficiency in R and the tidyverse ecosystem, and to connect familiar estimators and inventory principles to clear, repeatable, and reproducible data analysis pipelines. Whether you’re new to these tools or looking for more efficient ways to implement classical methods, the emphasis is on transparent workflows you can adapt to common estimation settings.
Chapters 1 through 9 form an introduction to practical computing with R. We start from base R—objects, vectors, data frames, indexing, functions, and input/output—and build toward pipe-based workflows. Along the way, we develop data wrangling with dplyr (verbs and joins), reshaping with tidyr, iteration, small reusable functions, visualization with ggplot2, and reproducible project practices that scale from a single stand to large inventories. The aim is pragmatic: readable code, consistent structure, and routines that make forest data easier to organize, verify, summarize, and explain.
Chapters 10 through 18 turn to forest inventory and estimation. Here we build directly on the computing foundation established earlier and introduce and apply well-established statistical tools—simple random sampling, systematic designs, stratification, cluster and multistage sampling, and ratio and regression estimators. The mathematical foundations of these methods were developed by generations of forest biometricians and applied statisticians whose work continues to guide the profession. Our contribution is to bring these classical ideas into a modern workflow: clear illustrations, transparent calculation paths, and reproducible implementations that make it easier to move from field measurements to defensible estimates and uncertainty statements.
Companion datasets, scripts, and other book resources are available on the book’s website at https://ifdar-book.org/.
This site provides the materials used throughout the chapters, along with updates, errata, and supplemental content as the book evolves. We encourage you to download these resources and follow along with the examples and exercises.
Our hope is that this book helps you develop an adaptable codebase and a reliable, efficient way of working—a workflow you can reuse, audit, and share. By the end, you should be able to take a raw inventory dataset, turn it into analysis-ready tables and figures, compute estimates and their associated uncertainty, and communicate results in a way that supports defensible decisions as a forester, analyst, and steward of forested landscapes.
Andrew O. Finley
East Lansing, Michigan
Jeffrey W. Doser
Raleigh, North Carolina
Acknowledgments
During the long process of writing this book, we benefited greatly from the generous reviews, technical comments, contributed material, and encouragement of Sudipto Banerjee, Anthony D’Amato, Ken Desmarais, Mike Eckley, Lutz Fehrmann, Anton Grafström, Ed Green, Juha Heikkinen, Kim Iles, Malcolm Itter, Annika Kangas, Braeden Klaty, Rayleigh Lei, David MacFarlane, John Paul McTague, Vincent Melfi, Arne Nothdurft, David Orwig, Jarred Saralecos, Elliot Shannon, Göran Ståhl, Tim Vredenburg, Aaron Weiskittel, and Grayson White. We are also grateful to the Cow Creek Band of Umpqua Tribe of Indians for sharing forest inventory data that form the basis of several exercises and examples in this book.
Dedication
A.O.F. For Sarah, Ava, Oliver, and Callum. I also dedicate this book to my father, James C. Finley, whose work in forestry and stewardship inspired my own.
J.W.D. For Gabriela and Lewis, and for my parents, James and Elizabeth.