Skip to content

Commit d08d54a

Browse files
committed
add DEFAULT_TREE_COLUMNS
1 parent 9940da9 commit d08d54a

4 files changed

Lines changed: 52 additions & 6 deletions

File tree

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export(.get_tree_list_xy)
4+
export(DEFAULT_TREE_COLUMNS)
45
export(create_fia_owin)
56
export(create_fia_ppp)
67
export(load_tree_data)

R/data.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
#' Names of the FIADB TREE columns used by default in \pkg{FIAstemmap}
2+
#'
3+
#' `DEFAULT_TREE_COLUMNS` is a character vector of column names in the FIADB
4+
#' TREE table that are used to compute various tree- and plot-level derived
5+
#' variables in \pkg{FIAstemmap}. Note that certain outputs can be
6+
#' generated without this full set of TREE attributes, but these are the ones
7+
#' generally needed for all functionality in the package.
8+
#'
9+
#' @format
10+
#' A character vector with 12 elements.
11+
#' @examples
12+
#' DEFAULT_TREE_COLUMNS
13+
#' @source <https://research.fs.usda.gov/products/dataandtools/fia-datamart>
14+
#' @export
15+
DEFAULT_TREE_COLUMNS <- c("PLT_CN", "SUBP", "TREE", "AZIMUTH", "DIST",
16+
"STATUSCD", "SPCD", "DIA", "HT", "ACTUALHT",
17+
"CCLCD", "TPA_UNADJ")
18+
119
#' Regression coefficients for predicting tree crown width
220
#'
321
#' A curated set of linear regression coefficients for predicting crown width

_pkgdown.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ home:
1212
structure: [toc, links, community, authors, citation, license]
1313

1414
reference:
15-
- title: Datasets
16-
- contents:
17-
- cw_coef
18-
- cw_sapling_adj
19-
- plantation
20-
2115
- title: Functions
2216
- contents:
2317
- overlay_crowns
2418
- predict_crwidth
2519
- spatstat_helpers
20+
21+
- title: Data
22+
- contents:
23+
- DEFAULT_TREE_COLUMNS
24+
- cw_coef
25+
- cw_sapling_adj
26+
- plantation

man/DEFAULT_TREE_COLUMNS.Rd

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)