siteAdjustmentFactors: Site adjustment factors

Description Usage Arguments Examples

View source: R/siteAdjustmentFactors.R

Description

Return site adjustment factors of selected phenotypic descriptors.

Usage

1
2
3
4
5
siteAdjustmentFactors(
  phenoData,
  descriptors = c("Diameter at breast height (m)", "Lower crown height (m)",
    "Timber height (m)", "Total height (m)", "Crown radius (m)")
)

Arguments

phenoData

phenoData tibble containing phenotype data

descriptors

columns of phenoData on which calculate site correction factors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(dplyr)

## Retrieve file paths for example data
files <- list.files(system.file('phenotypeDataCollectionSheets',
  package = 'pdi'),full.names = TRUE)

## Prepare data
d <- map(files,readPhenotypeSheet) %>%
  map(preparePhenotypeData) %>%
  bind_rows() %>%
  siteAdjustment()

sa_factors <- siteAdjustmentFactors(d)

jasenfinch/pdi documentation built on Feb. 13, 2021, 2:20 p.m.