Skip to content

Commit d814f9f

Browse files
committed
rename crwidth_coef to cw_coef and update its documentation
1 parent f34078b commit d814f9f

4 files changed

Lines changed: 36 additions & 16 deletions

File tree

R/data.R

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,26 @@
77
#' The regression equation is of the general form:
88
#'
99
#' ```
10-
#' CRWIDTH = b0 + b1 * DIA + b2 * DIA^2
10+
#' CW = b0 + b1 * DIA + b2 * DIA^2
1111
#' ```
1212
#'
13-
#' A quadratic term is not included in all cases. `CRWIDTH` is the
14-
#' predicted tree crown diameter in feet, and `DIA` is FIA stem diameter in
15-
#' inches.
13+
#' where `CW` is the predicted tree crown diameter in feet, `DIA` is FIA stem
14+
#' diameter in inches, and `b0`, `b1`, `b2` are the regression coefficients.
15+
#' The quadratic term `b2` was not included in the regression models for some
16+
#' species, and has been assigned `0` in that case for purposes of this lookup
17+
#' table.
1618
#'
1719
#' In cases that species-specific equations were not available in the
1820
#' literature, surrogate species were assigned based on subjectively similar
1921
#' tree physiognomy.
2022
#'
21-
#' @format ## `crwidth_coef`
23+
#' @format ## `cw_coef`
2224
#' A data frame with 430 rows and 8 columns:
2325
#' \describe{
2426
#' \item{\code{symbol}}{\code{\link{character}},
2527
#' USDA PLANTS Database species symbol}
26-
#' \item{\code{SPCD}}{\code{\link{integer}}, FIA tree species code}
28+
#' \item{\code{SPCD}}{\code{\link{integer}},
29+
#' FIA tree species code or `-1`}
2730
#' \item{\code{common_name}}{\code{\link{character}},
2831
#' FIA tree species common name}
2932
#' \item{\code{surrogate}}{\code{\link{character}},
@@ -34,6 +37,12 @@
3437
#' \item{\code{reference}}{\code{\link{character}},
3538
#' Literature source of the species coefficients (see References)}
3639
#' }
40+
#' @examples
41+
#' cw_coef[cw_coef$SPCD == 17, ]
42+
#' @source
43+
#' Toney et al. 2009. A stem-map model for predicting tree canopy cover of
44+
#' Forest Inventory and Analysis (FIA) plots.
45+
#' \url{https://research.fs.usda.gov/treesearch/33381}.
3746
#' @references
3847
#' Bechtold, W.A. 2003. Crown-Diameter Prediction Models for 87 Species of
3948
#' Stand-Grown Trees in the Eastern United States. _Southern Journal of Applied
@@ -46,7 +55,7 @@
4655
#' Gill, S.J., G.S. Biging, E.C. Murphy. 2000. Modeling conifer tree crown
4756
#' radius and estimating canopy cover. _Forest Ecology and Management_, 126,
4857
#' 405-416.
49-
"crwidth_coef"
58+
"cw_coef"
5059

5160

5261
#' Tree list for a plot in a loblolly pine plantation

data/crwidth_coef.rda

-8.46 KB
Binary file not shown.

data/cw_coef.rda

8.56 KB
Binary file not shown.
Lines changed: 20 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)