Skip to content

Commit a2565d1

Browse files
committed
rename predict_crwidth() to calc_crwidth()
1 parent e24c2d9 commit a2565d1

10 files changed

Lines changed: 19 additions & 19 deletions

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
export(.get_fia_plot_geom)
44
export(.get_tree_list_xy)
55
export(DEFAULT_TREE_COLUMNS)
6+
export(calc_crwidth)
67
export(calc_ht_metrics)
78
export(create_fia_owin)
89
export(create_fia_ppp)
910
export(load_tree_data)
1011
export(overlay_crowns)
1112
export(plot_crowns)
12-
export(predict_crwidth)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Compute predicted tree crown width using species-specific equations
22
#'
3-
#' `predict_crwidth()` computes tree crown width using species-specific
3+
#' `calc_crwidth()` computes tree crown width using species-specific
44
#' regression equations from the literature.
55
#'
66
#' @details
@@ -16,7 +16,7 @@
1616
#' region can far exceed the range of diameters in the broadly applicable
1717
#' datasets that have been used to develop crown width prediction equations. To
1818
#' avoid extrapolation beyond the range of the model fitting data in those
19-
#' cases, `predict_crwidth()` makes use of the "old growth" equation presented
19+
#' cases, `calc_crwidth()` makes use of the "old growth" equation presented
2020
#' by Gill et al. (2000) to estimate crown width for nine tree species when
2121
#' their diameter is greater than 50 in. (127 cm).
2222
#'
@@ -35,9 +35,9 @@
3535
#' 405-416.
3636
#'
3737
#' @examples
38-
#' predict_crwidth(plantation)
38+
#' calc_crwidth(plantation)
3939
#' @export
40-
predict_crwidth <- function(tree_list, digits = 1) {
40+
calc_crwidth <- function(tree_list, digits = 1) {
4141
if (missing(tree_list) || is.null(tree_list))
4242
stop("'tree_list' is required", call. = FALSE)
4343

R/overlay_crowns.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#'
2626
#' @examples
2727
#' # subplot 1 of the `plantation` plot
28-
#' trees <- within(plantation, CRWIDTH <- predict_crwidth(plantation))
28+
#' trees <- within(plantation, CRWIDTH <- calc_crwidth(plantation))
2929
#' trees[trees$SUBP == 1 & trees$DIA >= 5, ] |>
3030
#' overlay_crowns(sample_radius = 24)
3131
#'

R/plot_crowns.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#' The input, invisibly.
3939
#'
4040
#' @examples
41-
#' trees <- within(plantation, CRWIDTH <- predict_crwidth(plantation))
41+
#' trees <- within(plantation, CRWIDTH <- calc_crwidth(plantation))
4242
#'
4343
#' plot_crowns(trees, main = "plantation plot")
4444
#'

R/spatstat_helpers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#' * `ACTUALHT`: optional tree actual height (accounts for broken top)
3232
#' * `CCLCD`: optional crown class code
3333
#' * `TPA_UNADJ`: optional tree expansion factor (per acre)
34-
#' * `CRWIDTH`: optional crown width (see `predict_crwidth()`)
34+
#' * `CRWIDTH`: optional crown width (see `calc_crwidth()`)
3535
#'
3636
#' @param linear_unit An optional character string specifying the linear
3737
#' distance unit. Defaults to the native FIA unit of `"ft"`, but may be set to

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ home:
1414
reference:
1515
- title: Functions
1616
- contents:
17+
- calc_crwidth
1718
- calc_ht_metrics
1819
- load_tree_data
1920
- overlay_crowns
2021
- plot_crowns
21-
- predict_crwidth
2222
- spatstat_helpers
2323

2424
- title: Data
Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/overlay_crowns.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plot_crowns.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/spatstat_helpers.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)